Click or drag to resize

Unvired.Kernel.UWP.Core Namespace

 
Classes
  ClassDescription
Public classApplicationManager
ApplicationManager provides information about the application, application meta data and access to the application's data manager.
  • Application Info: Application name and application id in the Unvired server.
  • Application Meta Data: Meta data describing the application ApplicationMeta, the business entities BusinessEntityMeta, the data structure objects (headers and items - StructureMeta and fields of the data structures FieldMeta.
  • Application Data Manager: Data manager is the handle to the application to the database for database operations - IDataManager.
ApplicationManager is a singleton and access to its instance has to be obtained using property Instance.
Public classFrameworkManager
Public classFrameworkSettingsManager
Public classRuntimeEngine
RuntimeEngine is used to initialize the application when the application starts. Initializing the application when the application starts is mandatory. Without the initialization the application cannot function.

Usage:

Call the function initialize(...) before:
  1. Accessing the database
  2. Accessing the synchronization / communication layer

Example:

string appName = "SAP_ERP_SO_TEMPLATE";
string assemblyName = GetType().GetTypeInfo().Assembly.FullName;  (using System.Reflection;)
string EntityNamespace = "Entity"; (Namespace of BusinessEntity classes)
using (XmlReader xr = XmlReader.Create(@"metadata.xml")) { XDocument metadataXml = XDocument.Load(xr); }
RuntimeEngine runtimeEngine = RuntimeEngine.Instance;
runtimeEngine.initialize(appName, metaDataXml,assemblyName,EntityNamespace);

RuntimeEngine is a singleton and can be accessed using the Instance property.
Public classUserSettingsManager
UserSettingsManager provides information about the user which include Unvired user id, ADS user id, SAP user id, Domain, URL, Login Type etc.
Enumerations