本文整理匯總了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());
}