本文整理汇总了C#中System.ComponentModel.Composition.Hosting.CompositionContainer.ExecuteExports方法的典型用法代码示例。如果您正苦于以下问题:C# CompositionContainer.ExecuteExports方法的具体用法?C# CompositionContainer.ExecuteExports怎么用?C# CompositionContainer.ExecuteExports使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.ComponentModel.Composition.Hosting.CompositionContainer
的用法示例。
在下文中一共展示了CompositionContainer.ExecuteExports方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RunAfterEndpointStart
static async Task RunAfterEndpointStart(CompositionContainer compositionContainer, IEndpointInstance endpoint)
{
await compositionContainer.ExecuteExports<IRunAfterEndpointStart>(_ => _.Run(endpoint));
}
示例2: RunAfterEndpointStop
static async Task RunAfterEndpointStop(CompositionContainer compositionContainer)
{
await compositionContainer.ExecuteExports<IRunAfterEndpointStop>(_ => _.Run());
}
示例3: RunBeforeEndpointStop
static async Task RunBeforeEndpointStop(CompositionContainer compositionContainer, IEndpointInstance endpoint)
{
await compositionContainer.ExecuteExports<IRunBeforeEndpointStop>(_ => _.Run(endpoint));
}
示例4: RunBeforeEndpointStart
static async Task RunBeforeEndpointStart(CompositionContainer compositionContainer)
{
await compositionContainer.ExecuteExports<IRunBeforeEndpointStart>(_ => _.Run());
}
示例5: RunCustomizeConfiguration
// Other injection points excluded, but follow the same pattern as above
#endregion
static async Task RunCustomizeConfiguration(CompositionContainer compositionContainer, EndpointConfiguration endpointConfiguration)
{
await compositionContainer.ExecuteExports<ICustomizeConfiguration>(_ => _.Run(endpointConfiguration));
}
示例6: RunAfterEndpointStart
static void RunAfterEndpointStart(CompositionContainer compositionContainer, IBus bus)
{
compositionContainer.ExecuteExports<IRunAfterEndpointStart>(_ => _.Run(bus));
}
示例7: RunBeforeEndpointStop
static void RunBeforeEndpointStop(CompositionContainer compositionContainer, IBus bus)
{
compositionContainer.ExecuteExports<IRunBeforeEndpointStop>(_ => _.Run(bus));
}
示例8: RunAfterEndpointStop
static void RunAfterEndpointStop(CompositionContainer compositionContainer)
{
compositionContainer.ExecuteExports<IRunAfterEndpointStop>(_ => _.Run());
}
示例9: RunCustomizeConfiguration
// Other injection points excluded, but follow the same pattern as above
#endregion
static void RunCustomizeConfiguration(CompositionContainer compositionContainer, BusConfiguration busConfiguration)
{
compositionContainer.ExecuteExports<ICustomizeConfiguration>(_ => _.Run(busConfiguration));
}
示例10: RunBeforeEndpointStart
static void RunBeforeEndpointStart(CompositionContainer compositionContainer)
{
compositionContainer.ExecuteExports<IRunBeforeEndpointStart>(_ => _.Run());
}