C# Класс Castle.Facilities.DynamicLoader.DynamicLoaderFacility

DynamicLoader facility.
Наследование: System.MarshalByRefObject, IFacility, IDisposable
Показать файл Открыть проект

Открытые методы

Метод Описание
Dispose ( ) : void

IDisposable implementation. Releases all RemoteLoaders and AppDomains.

Init ( IKernel kernel, IConfiguration facilityConfig ) : void

Initializes the facility.

Terminate ( ) : void

Terminates the facility.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void
GetConfigAttribute ( IConfiguration cfg, string attribute, string defaultValue ) : string
GetCurrentAppRootDirectory ( ) : string

Gets the root directory of the current application. For web applications, it is obtained from HttpServerUtility.MapPath. For other applications, AppDomain.BaseDirectory is used.

Init ( ) : void
InitializeBatchRegistration ( RemoteLoader loader, IConfiguration batchRegistrationNode ) : void
NormalizeDirectoryPath ( string path ) : string

Normalizes a directory path. It includes resolving parent (..) paths and the ~ prefix, which maps to the root of the current application.

Приватные методы

Метод Описание
CreateAppDomain ( IConfiguration domainNode ) : AppDomain
CreateRemoteLoader ( AppDomain appDomain ) : RemoteLoader
GetChildNodeValue ( IConfiguration cfg, string nodeName ) : string
InitializeBatchComponents ( RemoteLoader loader, IConfiguration componentsNode ) : void

Register each batch component.

An example of a valid configuration node: <component id="componentid.*"> <providesService service="Company.Project.IService, Company.Project" /> </component>

IsEmpty ( string value ) : bool
IsTrue ( string value ) : bool

Описание методов

Dispose() публичный Метод

IDisposable implementation. Releases all RemoteLoaders and AppDomains.
public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

protected Dispose ( bool disposing ) : void
disposing bool
Результат void

GetConfigAttribute() защищенный Метод

protected GetConfigAttribute ( IConfiguration cfg, string attribute, string defaultValue ) : string
cfg IConfiguration
attribute string
defaultValue string
Результат string

GetCurrentAppRootDirectory() защищенный Метод

Gets the root directory of the current application. For web applications, it is obtained from HttpServerUtility.MapPath. For other applications, AppDomain.BaseDirectory is used.
protected GetCurrentAppRootDirectory ( ) : string
Результат string

Init() защищенный Метод

protected Init ( ) : void
Результат void

Init() публичный Метод

Initializes the facility.
public Init ( IKernel kernel, IConfiguration facilityConfig ) : void
kernel IKernel
facilityConfig IConfiguration
Результат void

InitializeBatchRegistration() защищенный Метод

protected InitializeBatchRegistration ( RemoteLoader loader, IConfiguration batchRegistrationNode ) : void
loader RemoteLoader
batchRegistrationNode IConfiguration
Результат void

NormalizeDirectoryPath() защищенный Метод

Normalizes a directory path. It includes resolving parent (..) paths and the ~ prefix, which maps to the root of the current application.
protected NormalizeDirectoryPath ( string path ) : string
path string The directory path
Результат string

Terminate() публичный Метод

Terminates the facility.
public Terminate ( ) : void
Результат void