Share via


AsyncServiceScope Struct

Definition

An IServiceScope implementation that implements 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
Inheritance
AsyncServiceScope
Implements

Constructors

Name Description
AsyncServiceScope(IServiceScope)

Initializes a new instance of the AsyncServiceScope struct. Wraps an instance of IServiceScope.

Properties

Name Description
ServiceProvider

The IServiceProvider used to resolve dependencies from the scope.

Methods

Name Description
Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

DisposeAsync()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.

Extension Methods

Name Description
ConfigureAwait(IAsyncDisposable, Boolean)

Configures how awaits on the tasks returned from an async disposable will be performed.

Applies to