AsyncServiceScope Struct-datatyp

Definition

En IServiceScope implementering som implementerar 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
Arv
AsyncServiceScope
Implementeringar

Konstruktorer

Name Description
AsyncServiceScope(IServiceScope)

Initierar en ny instans av structen AsyncServiceScope . Omsluter en instans av IServiceScope.

Egenskaper

Name Description
ServiceProvider

Används IServiceProvider för att lösa beroenden från omfånget.

Metoder

Name Description
Dispose()

Utför programdefinierade uppgifter som är associerade med att frigöra, frigöra eller återställa ohanterade resurser.

DisposeAsync()

Utför programdefinierade uppgifter som är associerade med att frigöra, frigöra eller återställa ohanterade resurser asynkront.

Tilläggsmetoder

Name Description
ConfigureAwait(IAsyncDisposable, Boolean)

Konfigurerar hur väntar på de uppgifter som returneras från en asynkron disponibel ska utföras.

Gäller för