Initialize Method

Regno Shared SQLRace

RegnoCompleteRegnoSoftware.Standard.Core

RegnoCore..::..Initialize Method

Initializes the specified service type.

Namespace:  RegnoSoftware.Standard
Assembly:  RegnoSoftware.Standard (in RegnoSoftware.Standard.dll)

Syntax


public static bool Initialize(
	ServiceType serviceType,
	string baseFolder,
	bool enableLogging
)

Parameters

serviceType
Type: RegnoSoftware.Standard.Core.Enums..::..ServiceType
Type of the service.
baseFolder
Type: String
The base folder.
enableLogging
Type: Boolean
if set to true [enable logging].

Return Value

true if the RegnoCore was sucessfully initialized. Connectors, Services and Key framework elements.false otherwise.

Examples



class ExampleClass
{
static void Main()
{
RegnoCore.Initialize();
RegnoCore.Initialize(serviceType: ServiceType.MongoService);
RegnoCore.Initialize(serviceType: ServiceType.MongoService, baseFolder: "c:\tmp\regnoexample");
RegnoCore.Initialize(serviceType: ServiceType.MongoService, baseFolder: "c:\tmp\regnoexample", enableLogging: false);
}
}