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

Loads components on an isolated AppDomain.
Наследование: System.MarshalByRefObject, IDisposable
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
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