ServiceProviderServiceExtensions.CreateAsyncScope Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Surcharges
| Nom | Description |
|---|---|
| CreateAsyncScope(IServiceScopeFactory) |
Crée un nouveau AsyncServiceScope qui peut être utilisé pour résoudre les services délimités. |
| CreateAsyncScope(IServiceProvider) |
Crée un nouveau AsyncServiceScope qui peut être utilisé pour résoudre les services délimités. |
CreateAsyncScope(IServiceScopeFactory)
Crée un nouveau AsyncServiceScope qui peut être utilisé pour résoudre les services délimités.
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
Paramètres
- serviceScopeFactory
- IServiceScopeFactory
À IServiceScopeFactory partir duquel créer l’étendue.
Retours
Qui AsyncServiceScope peut être utilisé pour résoudre les services délimités.
S’applique à
CreateAsyncScope(IServiceProvider)
Crée un nouveau AsyncServiceScope qui peut être utilisé pour résoudre les services délimités.
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
Paramètres
- provider
- IServiceProvider
À IServiceProvider partir duquel créer l’étendue.
Retours
Qui AsyncServiceScope peut être utilisé pour résoudre les services délimités.