AsyncServiceScope Structure

Définition

Implémentation IServiceScope qui implémente IAsyncDisposable.

public value class AsyncServiceScope : IAsyncDisposable, IDisposable, Microsoft::Extensions::DependencyInjection::IServiceScope
public readonly struct AsyncServiceScope : IAsyncDisposable, IDisposable, Microsoft.Extensions.DependencyInjection.IServiceScope
type AsyncServiceScope = struct
    interface IServiceScope
    interface IDisposable
    interface IAsyncDisposable
Public Structure AsyncServiceScope
Implements IAsyncDisposable, IDisposable, IServiceScope
Héritage
AsyncServiceScope
Implémente

Constructeurs

Nom Description
AsyncServiceScope(IServiceScope)

Initialise une nouvelle instance du AsyncServiceScope struct. Encapsule une instance de IServiceScope.

Propriétés

Nom Description
ServiceProvider

IServiceProvider Utilisé pour résoudre les dépendances de l’étendue.

Méthodes

Nom Description
Dispose()

Effectue des tâches définies par l’application associées à la libération, à la libération ou à la réinitialisation des ressources non managées.

DisposeAsync()

Effectue des tâches définies par l’application associées à la libération, à la libération ou à la réinitialisation asynchrone des ressources non managées.

Méthodes d’extension

Nom Description
ConfigureAwait(IAsyncDisposable, Boolean)

Configure la façon dont les attentes sur les tâches retournées à partir d’un jetable asynchrone sont effectuées.

S’applique à