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

Loads components on an isolated AppDomain.
상속: System.MarshalByRefObject, IDisposable
파일 보기 프로젝트 열기: nats/castle-1.0.3-mono 1 사용 예제들

공개 메소드들

메소드 설명
CreateRemoteInstance ( ComponentModel model, CreationContext context, object arguments, Type signature ) : object

Creates a component on an isolated AppDomain.

Dispose ( ) : void

Disposes the Kernel.

InitializeLifetimeService ( ) : object

Overrides MarshalByRefObject.InitializeLifetimeService, so no lease is returned and the object is kept in memory as long as the host application domain is running.

RegisterByServiceProvided ( string componentIdMask ) : void

Searches for implementations of the given services in the current AppDomain and add as components. Used by DynamicLoaderFacility.InitializeBatchRegistration.

RemoteLoader ( ) : System

Creates a new RemoteLoader. This constructor should not be called directly in the code, but via System.AppDomain.CreateInstance(string,string).

비공개 메소드들

메소드 설명
GenerateComponentId ( ) : string

Generates an unique component id, given the componentIdMask.

IsValidServiceImplementation ( Type serviceType, Type t ) : bool

Checks whether a type t is a valid implementation of a given service serviceType.

LoadAllAssemblies ( ) : void

Loads all assemblies in the current AppDomain.

메소드 상세

CreateRemoteInstance() 공개 메소드

Creates a component on an isolated AppDomain.
public CreateRemoteInstance ( ComponentModel model, CreationContext context, object arguments, Type signature ) : object
model Castle.Core.ComponentModel
context Castle.MicroKernel.CreationContext
arguments object
signature System.Type
리턴 object

Dispose() 공개 메소드

Disposes the Kernel.
public Dispose ( ) : void
리턴 void

InitializeLifetimeService() 공개 메소드

Overrides MarshalByRefObject.InitializeLifetimeService, so no lease is returned and the object is kept in memory as long as the host application domain is running.
public InitializeLifetimeService ( ) : object
리턴 object

RegisterByServiceProvided() 공개 메소드

Searches for implementations of the given services in the current AppDomain and add as components. Used by DynamicLoaderFacility.InitializeBatchRegistration.
public RegisterByServiceProvided ( string componentIdMask ) : void
componentIdMask string The component id mask. Any * (asterisk) character will be replaced by a sequential number, starting by 1 (one).
리턴 void

RemoteLoader() 공개 메소드

Creates a new RemoteLoader. This constructor should not be called directly in the code, but via System.AppDomain.CreateInstance(string,string).
public RemoteLoader ( ) : System
리턴 System