本文整理汇总了C#中ComponentInstanceDelegate类的典型用法代码示例。如果您正苦于以下问题:C# ComponentInstanceDelegate类的具体用法?C# ComponentInstanceDelegate怎么用?C# ComponentInstanceDelegate使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ComponentInstanceDelegate类属于命名空间,在下文中一共展示了ComponentInstanceDelegate类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: ServiceCreatorCallbackActivator
public ServiceCreatorCallbackActivator(ComponentModel model,
IKernel kernel, ComponentInstanceDelegate onCreation,
ComponentInstanceDelegate onDestruction) :
base(model, kernel, onCreation, onDestruction)
{
// Nothing to do
}
开发者ID:nats,项目名称:castle-1.0.3-mono,代码行数:7,代码来源:ServiceCreatorCallbackActivator.cs
示例2: SessionFactoryActivator
/// <summary>
/// Constructor for SessionFactoryActivator
/// </summary>
/// <param name="model"></param>
/// <param name="kernel"></param>
/// <param name="onCreation"></param>
/// <param name="onDestruction"></param>
public SessionFactoryActivator(ComponentModel model,
IKernelInternal kernel,
ComponentInstanceDelegate onCreation,
ComponentInstanceDelegate onDestruction)
: base(model, kernel, onCreation, onDestruction)
{
}
开发者ID:mahara,项目名称:Castle.Facilities.NHibernateIntegration,代码行数:14,代码来源:SessionFactoryActivator.cs
示例3: CreateOnUIThreadActivator
/// <summary>
/// Initializes a new instance of the <see cref = "CreateOnUIThreadActivator" /> class.
/// </summary>
/// <param name = "model">The model.</param>
/// <param name = "kernel">The kernel.</param>
/// <param name = "onCreation">Delegate called on construction.</param>
/// <param name = "onDestruction">Delegate called on destruction.</param>
public CreateOnUIThreadActivator(ComponentModel model, IKernel kernel, ComponentInstanceDelegate onCreation,
ComponentInstanceDelegate onDestruction)
: base(model, kernel, onCreation, onDestruction)
{
customActivator = CreateCustomActivator(model, kernel);
performCreation = PerformCreation;
}
开发者ID:rtr0mdrn,项目名称:Windsor,代码行数:14,代码来源:CreateOnUIThreadActivator.cs
示例4: DefaultComponentActivator
/// <summary>
/// Initializes a new instance of the <see cref = "DefaultComponentActivator" /> class.
/// </summary>
/// <param name = "model"></param>
/// <param name = "kernel"></param>
/// <param name = "onCreation"></param>
/// <param name = "onDestruction"></param>
public DefaultComponentActivator(ComponentModel model, IKernel kernel, ComponentInstanceDelegate onCreation, ComponentInstanceDelegate onDestruction)
: base(model, kernel, onCreation, onDestruction)
{
#if (!SILVERLIGHT)
useFastCreateInstance = !model.Implementation.IsContextful && new SecurityPermission(SecurityPermissionFlag.SerializationFormatter).IsGranted();
#endif
}
开发者ID:thefringeninja,项目名称:Castle.Windsor,代码行数:14,代码来源:DefaultComponentActivator.cs
示例5: AbstractComponentActivator
/// <summary>
/// Constructs an AbstractComponentActivator
/// </summary>
protected AbstractComponentActivator(ComponentModel model, IKernel kernel, ComponentInstanceDelegate onCreation, ComponentInstanceDelegate onDestruction)
{
this.model = model;
this.kernel = kernel;
this.onCreation = onCreation;
this.onDestruction = onDestruction;
}
开发者ID:martinernst,项目名称:Castle.Windsor,代码行数:10,代码来源:AbstractComponentActivator.cs
示例6: ControlComponentActivator
/// <summary>
/// Initializes a new instance of the <see cref="ControlComponentActivator"/> class.
/// </summary>
/// <param name="model">The model.</param>
/// <param name="kernel">The kernel.</param>
/// <param name="onCreation">Delegate called on construction.</param>
/// <param name="onDestruction">Delegate called on destruction.</param>
public ControlComponentActivator(ComponentModel model, IKernel kernel,
ComponentInstanceDelegate onCreation,
ComponentInstanceDelegate onDestruction)
: base(model, kernel, onCreation, onDestruction)
{
instantiateInMainThread = InstantiateInMainThread;
}
开发者ID:ralescano,项目名称:castle,代码行数:14,代码来源:ControlComponentActivator.cs
示例7: DefaultComponentActivator
/// <summary>
/// Initializes a new instance of the <see cref="DefaultComponentActivator"/> class.
/// </summary>
/// <param name="model"></param>
/// <param name="kernel"></param>
/// <param name="onCreation"></param>
/// <param name="onDestruction"></param>
public DefaultComponentActivator(ComponentModel model, IKernel kernel,
ComponentInstanceDelegate onCreation,
ComponentInstanceDelegate onDestruction)
: base(model, kernel, onCreation, onDestruction)
{
useFastCreateInstance = !model.Implementation.IsContextful && SecurityManager.IsGranted(new SecurityPermission(SecurityPermissionFlag.SerializationFormatter));
}
开发者ID:ralescano,项目名称:castle,代码行数:14,代码来源:DefaultComponentActivator.cs
示例8: LoggerActivator
public LoggerActivator(
ComponentModel model,
IKernel kernel,
ComponentInstanceDelegate onCreation,
ComponentInstanceDelegate onDestruction)
: base(model, (IKernelInternal)kernel, onCreation, onDestruction)
{
}
开发者ID:CyAScott,项目名称:ImageProcessor,代码行数:8,代码来源:LogInstaller.cs
示例9: ContextStoreInstanceActivator
public ContextStoreInstanceActivator(
ComponentModel model,
IKernel kernel,
ComponentInstanceDelegate onCreation,
ComponentInstanceDelegate onDestruction) : base(model, kernel, onCreation, onDestruction)
{
this.storeKey = model.Name;
}
开发者ID:endjin,项目名称:openrasta-stable,代码行数:8,代码来源:ContextStoreInstanceActivator.cs
示例10: ViewComponentActivator
public ViewComponentActivator(ComponentModel model, IKernel kernel, ComponentInstanceDelegate onCreation, ComponentInstanceDelegate onDestruction)
: base(model, kernel, onCreation, onDestruction)
{
ViewType = Model.Implementation;
ViewModelType = Model.Implementation
.GetInterfaces()
.Where(i => i.IsGenericType && i.GetGenericTypeDefinition() == typeof(IView<>))
.Select(i => i.GetGenericArguments().First())
.First();
}
开发者ID:mmorton,项目名称:Flux,代码行数:10,代码来源:ViewComponentActivator.cs
示例11: DynamicLoaderActivator
/// <summary>
/// Creates a new <see cref="DynamicLoaderActivator"/>.
/// </summary>
public DynamicLoaderActivator(ComponentModel model, IKernel kernel, ComponentInstanceDelegate onCreation,
ComponentInstanceDelegate onDestruction)
: base(model, kernel, onCreation, onDestruction)
{
if (!model.Implementation.IsSubclassOf(typeof(MarshalByRefObject)))
throw new FacilityException(
String.Format(
"The implementation for the component '{0}' must inherit from System.MarshalByRefObject in order to be created in an isolated AppDomain.",
model.Name));
this.loader = (RemoteLoader) model.ExtendedProperties["dynamicLoader.loader"];
if (this.loader == null)
throw new FacilityException(String.Format("A remote loader was not created for component '{0}'.", model.Name));
}
开发者ID:atczyc,项目名称:castle,代码行数:18,代码来源:DynamicLoaderActivator.cs
示例12: RemoteMarshallerActivator
/// <summary>
/// Initializes a new instance of the <see cref="RemoteMarshallerActivator"/> class.
/// </summary>
/// <param name="model">The model.</param>
/// <param name="kernel">The kernel.</param>
/// <param name="onCreation">The oncreation event handler.</param>
/// <param name="onDestruction">The ondestruction event handler.</param>
public RemoteMarshallerActivator(ComponentModel model, IKernel kernel, ComponentInstanceDelegate onCreation, ComponentInstanceDelegate onDestruction) : base(model, kernel, onCreation, onDestruction)
{
}
开发者ID:nats,项目名称:castle-1.0.3-mono,代码行数:10,代码来源:RemoteMarshallerActivator.cs
示例13: WebUserControlComponentActivator
/// <summary>
/// Initializes a new instance of the <see cref="WebUserControlComponentActivator"/> class.
/// </summary>
/// <param name="model">The model.</param>
/// <param name="kernel">The kernel.</param>
/// <param name="onCreation">The on creation.</param>
/// <param name="onDestruction">The on destruction.</param>
public WebUserControlComponentActivator(ComponentModel model, IKernel kernel,
ComponentInstanceDelegate onCreation,
ComponentInstanceDelegate onDestruction)
: base(model, kernel, onCreation, onDestruction)
{
}
开发者ID:ralescano,项目名称:castle,代码行数:13,代码来源:WebUserControlComponentActivator.cs
示例14: AspectEngineActivator
public AspectEngineActivator(ComponentModel model, IKernel kernel,
ComponentInstanceDelegate onCreation, ComponentInstanceDelegate onDestruction) :
base(model, kernel, onCreation, onDestruction)
{
}
开发者ID:nats,项目名称:castle-1.0.3-mono,代码行数:5,代码来源:AspectEngineActivator.cs
示例15: RemoteActivatorThroughConnector
/// <summary>
/// Initializes a new instance of the <see cref = "RemoteActivatorThroughConnector" /> class.
/// </summary>
/// <param name = "model">The model.</param>
/// <param name = "kernel">The kernel.</param>
/// <param name = "onCreation">The oncreation event handler.</param>
/// <param name = "onDestruction">The ondestruction event handler.</param>
public RemoteActivatorThroughConnector(ComponentModel model, IKernel kernel, ComponentInstanceDelegate onCreation, ComponentInstanceDelegate onDestruction)
: base(model, kernel, onCreation, onDestruction)
{
}
开发者ID:thefringeninja,项目名称:Castle.Windsor,代码行数:11,代码来源:RemoteActivatorThroughConnector.cs
示例16: FrameworkElementModelViewActivator
public FrameworkElementModelViewActivator(ComponentModel model, IKernel kernel, ComponentInstanceDelegate onCreation, ComponentInstanceDelegate onDestruction)
: base(model, kernel, onCreation, onDestruction)
{
}
开发者ID:bartsipes,项目名称:ElementSuite,代码行数:4,代码来源:FrameworkElementModelViewActivator.cs
示例17: RemoteClientActivatedActivator
/// <summary>
/// Initializes a new instance of the <see cref = "RemoteClientActivatedActivator" /> class.
/// </summary>
/// <param name = "model"> The model. </param>
/// <param name = "kernel"> The kernel. </param>
/// <param name = "onCreation"> The oncreation event handler. </param>
/// <param name = "onDestruction"> The ondestruction event handler. </param>
public RemoteClientActivatedActivator(ComponentModel model, IKernelInternal kernel, ComponentInstanceDelegate onCreation, ComponentInstanceDelegate onDestruction)
: base(model, kernel, onCreation, onDestruction)
{
}
开发者ID:RookieX,项目名称:Windsor,代码行数:11,代码来源:RemoteClientActivatedActivator.cs
示例18: CommandHandlerComponentActivator
public CommandHandlerComponentActivator(ComponentModel model, IKernelInternal kernel, ComponentInstanceDelegate onCreation, ComponentInstanceDelegate onDestruction)
: base(model, kernel, onCreation, onDestruction)
{
chainBuilder = new CommandHandlerChainBuilder(kernel);
}
开发者ID:gadjio,项目名称:Smi-Playground,代码行数:5,代码来源:CommandHandlerComponentActivator.cs
示例19: ExternalInstanceActivatorWithDecommissionConcern
public ExternalInstanceActivatorWithDecommissionConcern(ComponentModel model, IKernelInternal kernel, ComponentInstanceDelegate onCreation, ComponentInstanceDelegate onDestruction)
: base(model, kernel, onCreation, onDestruction)
{
}
开发者ID:johannesg,项目名称:NServiceBus,代码行数:4,代码来源:ExternalInstanceActivatorWithDecommissionConcern.cs
示例20: RemoteActivatorThroughRegistry
/// <summary>
/// Initializes a new instance of the <see cref = "RemoteActivatorThroughRegistry" /> class.
/// </summary>
/// <param name = "model"> The model. </param>
/// <param name = "kernel"> The kernel. </param>
/// <param name = "onCreation"> The oncreation event handler. </param>
/// <param name = "onDestruction"> The ondestruction event handler. </param>
public RemoteActivatorThroughRegistry(ComponentModel model, IKernelInternal kernel, ComponentInstanceDelegate onCreation, ComponentInstanceDelegate onDestruction)
: base(model, kernel, onCreation, onDestruction)
{
}
开发者ID:castleproject,项目名称:Windsor,代码行数:11,代码来源:RemoteActivatorThroughRegistry.cs
注:本文中的ComponentInstanceDelegate类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论