AsyncServiceScope Struct

Definizione

Implementazione IServiceScope che implementa 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
Ereditarietà
AsyncServiceScope
Implementazioni

Costruttori

AsyncServiceScope(IServiceScope)

Inizializza una nuova istanza dell'elemento struct AsyncServiceScope. Esegue il wrapping di un'istanza di IServiceScope.

Proprietà

ServiceProvider

Oggetto IServiceProvider usato per risolvere le dipendenze dall'ambito.

Metodi

Dispose()

Esegue attività definite dall'applicazione, come rilasciare o reimpostare risorse non gestite.

DisposeAsync()

Esegue attività definite dall'applicazione, ad esempio libera, rilascia o reimposta risorse non gestite in modo asincrono.

Si applica a