ServiceProviderServiceExtensions.CreateAsyncScope メソッド

定義

オーバーロード

CreateAsyncScope(IServiceScopeFactory)

スコープ サービスを解決するために使用できる新しい AsyncServiceScope を作成します。

CreateAsyncScope(IServiceProvider)

スコープ サービスを解決するために使用できる新しい AsyncServiceScope を作成します。

CreateAsyncScope(IServiceScopeFactory)

ソース:
ServiceProviderServiceExtensions.cs
ソース:
ServiceProviderServiceExtensions.cs
ソース:
ServiceProviderServiceExtensions.cs
ソース:
ServiceProviderServiceExtensions.cs
ソース:
ServiceProviderServiceExtensions.cs

スコープ サービスを解決するために使用できる新しい AsyncServiceScope を作成します。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::AsyncServiceScope CreateAsyncScope(Microsoft::Extensions::DependencyInjection::IServiceScopeFactory ^ serviceScopeFactory);
public static Microsoft.Extensions.DependencyInjection.AsyncServiceScope CreateAsyncScope (this Microsoft.Extensions.DependencyInjection.IServiceScopeFactory serviceScopeFactory);
static member CreateAsyncScope : Microsoft.Extensions.DependencyInjection.IServiceScopeFactory -> Microsoft.Extensions.DependencyInjection.AsyncServiceScope
<Extension()>
Public Function CreateAsyncScope (serviceScopeFactory As IServiceScopeFactory) As AsyncServiceScope

パラメーター

serviceScopeFactory
IServiceScopeFactory

スコープの作成元の IServiceScopeFactory

戻り値

AsyncServiceScopeスコープ指定されたサービスを解決するために使用できる 。

適用対象

CreateAsyncScope(IServiceProvider)

ソース:
ServiceProviderServiceExtensions.cs
ソース:
ServiceProviderServiceExtensions.cs
ソース:
ServiceProviderServiceExtensions.cs
ソース:
ServiceProviderServiceExtensions.cs
ソース:
ServiceProviderServiceExtensions.cs

スコープ サービスを解決するために使用できる新しい AsyncServiceScope を作成します。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::AsyncServiceScope CreateAsyncScope(IServiceProvider ^ provider);
public static Microsoft.Extensions.DependencyInjection.AsyncServiceScope CreateAsyncScope (this IServiceProvider provider);
static member CreateAsyncScope : IServiceProvider -> Microsoft.Extensions.DependencyInjection.AsyncServiceScope
<Extension()>
Public Function CreateAsyncScope (provider As IServiceProvider) As AsyncServiceScope

パラメーター

provider
IServiceProvider

スコープの作成元の IServiceProvider

戻り値

AsyncServiceScopeスコープ指定されたサービスを解決するために使用できる 。

適用対象