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

AsyncServiceScope(IServiceScope)

Initialise une nouvelle instance du struct AsyncServiceScope. Inclut dans un wrapper une instance de IServiceScope.

Propriétés

ServiceProvider

IServiceProvider utilisé pour résoudre les dépendances dans l’étendue.

Méthodes

Dispose()

Exécute les tâches définies par l'application associées à la libération ou à la redéfinition des ressources non managées.

DisposeAsync()

Exécute les tâches définies par l'application associées à la libération ou à la redéfinition asynchrone des ressources non managées.

S’applique à