RequestServicesFeature 类

定义

用于访问请求服务的 实现 IServiceProvidersFeature

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
继承
RequestServicesFeature
实现

构造函数

RequestServicesFeature(HttpContext, IServiceScopeFactory)

初始化 RequestServicesFeature 的新实例。

属性

RequestServices

获取或设置 IServiceProvider 范围限定为当前请求的 。

方法

Dispose()

用于访问请求服务的 实现 IServiceProvidersFeature

DisposeAsync()

用于访问请求服务的 实现 IServiceProvidersFeature

适用于