IServiceScopeFactory Interface
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.
Crée des instances de IServiceScope, qui est utilisée pour créer des services dans une étendue.
public interface class IServiceScopeFactory
public interface IServiceScopeFactory
type IServiceScopeFactory = interface
Public Interface IServiceScopeFactory
Méthodes
| Nom | Description |
|---|---|
| CreateScope() |
Créez un élément qui contient un IServiceScopeIServiceProvider élément utilisé pour résoudre les dépendances à partir d’une étendue nouvellement créée. |
Méthodes d’extension
| Nom | Description |
|---|---|
| CreateAsyncScope(IServiceScopeFactory) |
Crée un nouveau AsyncServiceScope qui peut être utilisé pour résoudre les services délimités. |