C# Class Castle.Facilities.DynamicLoader.DynamicLoaderFacility

DynamicLoader facility.
Inheritance: System.MarshalByRefObject, IFacility, IDisposable
Afficher le fichier Open project: nats/castle-1.0.3-mono

Méthodes publiques

Méthode Description
Dispose ( ) : void

IDisposable implementation. Releases all RemoteLoaders and AppDomains.

Init ( IKernel kernel, IConfiguration facilityConfig ) : void

Initializes the facility.

Terminate ( ) : void

Terminates the facility.

Méthodes protégées

Méthode Description
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.

Private Methods

Méthode Description
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

Method Details

Dispose() public méthode

IDisposable implementation. Releases all RemoteLoaders and AppDomains.
public Dispose ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

GetConfigAttribute() protected méthode

protected GetConfigAttribute ( IConfiguration cfg, string attribute, string defaultValue ) : string
cfg IConfiguration
attribute string
defaultValue string
Résultat string

GetCurrentAppRootDirectory() protected méthode

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
Résultat string

Init() protected méthode

protected Init ( ) : void
Résultat void

Init() public méthode

Initializes the facility.
public Init ( IKernel kernel, IConfiguration facilityConfig ) : void
kernel IKernel
facilityConfig IConfiguration
Résultat void

InitializeBatchRegistration() protected méthode

protected InitializeBatchRegistration ( RemoteLoader loader, IConfiguration batchRegistrationNode ) : void
loader RemoteLoader
batchRegistrationNode IConfiguration
Résultat void

NormalizeDirectoryPath() protected méthode

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
Résultat string

Terminate() public méthode

Terminates the facility.
public Terminate ( ) : void
Résultat void