Dela via


RequestServicesFeature Class

Definition

An implementation for IServiceProvidersFeature for accessing request services.

public ref class RequestServicesFeature : IAsyncDisposable, IDisposable, Microsoft::AspNetCore::Http::Features::IServiceProvidersFeature
public class RequestServicesFeature : IAsyncDisposable, IDisposable, Microsoft.AspNetCore.Http.Features.IServiceProvidersFeature
type RequestServicesFeature = class
    interface IServiceProvidersFeature
    interface IAsyncDisposable
    interface IDisposable
type RequestServicesFeature = class
    interface IServiceProvidersFeature
    interface IDisposable
    interface IAsyncDisposable
Public Class RequestServicesFeature
Implements IAsyncDisposable, IDisposable, IServiceProvidersFeature
Inheritance
RequestServicesFeature
Implements

Constructors

RequestServicesFeature(HttpContext, IServiceScopeFactory)

Initializes a new instance of RequestServicesFeature.

Properties

RequestServices

Gets or sets the IServiceProvider scoped to the current request.

Methods

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.

Applies to