C# 클래스 Castle.Facilities.DynamicLoader.DynamicLoaderFacility

DynamicLoader facility.
상속: System.MarshalByRefObject, IFacility, IDisposable
파일 보기 프로젝트 열기: nats/castle-1.0.3-mono

공개 메소드들

메소드 설명
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