Share via


ServiceProviderServiceExtensions.CreateAsyncScope Metode

Definisi

Overload

CreateAsyncScope(IServiceScopeFactory)

Membuat baru AsyncServiceScope yang dapat digunakan untuk mengatasi layanan terlingkup.

CreateAsyncScope(IServiceProvider)

Membuat baru AsyncServiceScope yang dapat digunakan untuk mengatasi layanan terlingkup.

CreateAsyncScope(IServiceScopeFactory)

Sumber:
ServiceProviderServiceExtensions.cs
Sumber:
ServiceProviderServiceExtensions.cs
Sumber:
ServiceProviderServiceExtensions.cs
Sumber:
ServiceProviderServiceExtensions.cs
Sumber:
ServiceProviderServiceExtensions.cs

Membuat baru AsyncServiceScope yang dapat digunakan untuk mengatasi layanan terlingkup.

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

Parameter

serviceScopeFactory
IServiceScopeFactory

IServiceScopeFactory untuk membuat cakupan dari.

Mengembalikan

Yang AsyncServiceScope dapat digunakan untuk menyelesaikan layanan terlingkup.

Berlaku untuk

CreateAsyncScope(IServiceProvider)

Sumber:
ServiceProviderServiceExtensions.cs
Sumber:
ServiceProviderServiceExtensions.cs
Sumber:
ServiceProviderServiceExtensions.cs
Sumber:
ServiceProviderServiceExtensions.cs
Sumber:
ServiceProviderServiceExtensions.cs

Membuat baru AsyncServiceScope yang dapat digunakan untuk mengatasi layanan terlingkup.

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

Parameter

provider
IServiceProvider

IServiceProvider untuk membuat cakupan dari.

Mengembalikan

Yang AsyncServiceScope dapat digunakan untuk menyelesaikan layanan terlingkup.

Berlaku untuk