Click or drag to resize

RuntimeEngine Class

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.
Inheritance Hierarchy
SystemObject
  Unvired.Kernel.UWP.CoreRuntimeEngine

Namespace:  Unvired.Kernel.UWP.Core
Assembly:  Unvired.Kernel.UWP (in Unvired.Kernel.UWP.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public class RuntimeEngine

The RuntimeEngine type exposes the following members.

Properties
  NameDescription
Public propertyStatic memberInstance
Get RuntimeEngine Singleton instance
Top
Methods
  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodInitialize
Initializes the application. Creates the database tables when the application is started first time.
Public methodInitializeApplication
Initialize the application. Parse metadata xml and create all application BusinessEntity structures tables
Public methodInitializeFramework
Initializes the framework. Creates framework database and framework related tables when the application is started first time.
Public methodStatic memberIsFrameworkInitialized
Check if Framework is initialized or not
Public methodIsLocalPasswordRequired
Check for the LOCAL_PASSWORD field true/false in FrameworkSetting sent by server in activation setting.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top
See Also