ResponseCachingMiddleware 构造函数

定义

重载

ResponseCachingMiddleware(RequestDelegate, IOptions<ResponseCachingOptions>, ILoggerFactory, ObjectPoolProvider)

创建一个新的 ResponseCachingMiddleware

ResponseCachingMiddleware(RequestDelegate, IOptions<ResponseCachingOptions>, ILoggerFactory, IResponseCachingPolicyProvider, IResponseCachingKeyProvider)
ResponseCachingMiddleware(RequestDelegate, IOptions<ResponseCachingOptions>, ILoggerFactory, IResponseCachingPolicyProvider, IResponseCache, IResponseCachingKeyProvider)

ResponseCachingMiddleware(RequestDelegate, IOptions<ResponseCachingOptions>, ILoggerFactory, ObjectPoolProvider)

Source:
ResponseCachingMiddleware.cs

创建一个新的 ResponseCachingMiddleware

public:
 ResponseCachingMiddleware(Microsoft::AspNetCore::Http::RequestDelegate ^ next, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::ResponseCaching::ResponseCachingOptions ^> ^ options, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory, Microsoft::Extensions::ObjectPool::ObjectPoolProvider ^ poolProvider);
public ResponseCachingMiddleware (Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.ResponseCaching.ResponseCachingOptions> options, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, Microsoft.Extensions.ObjectPool.ObjectPoolProvider poolProvider);
new Microsoft.AspNetCore.ResponseCaching.ResponseCachingMiddleware : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.ResponseCaching.ResponseCachingOptions> * Microsoft.Extensions.Logging.ILoggerFactory * Microsoft.Extensions.ObjectPool.ObjectPoolProvider -> Microsoft.AspNetCore.ResponseCaching.ResponseCachingMiddleware
Public Sub New (next As RequestDelegate, options As IOptions(Of ResponseCachingOptions), loggerFactory As ILoggerFactory, poolProvider As ObjectPoolProvider)

参数

next
RequestDelegate

表示 RequestDelegate 管道中的下一个中间件的 。

options
IOptions<ResponseCachingOptions>

此中间件的选项。

loggerFactory
ILoggerFactory

ILoggerFactory用于日志记录的 。

poolProvider
ObjectPoolProvider

ObjectPoolProvider用于创建ObjectPool实例的 。

适用于

ResponseCachingMiddleware(RequestDelegate, IOptions<ResponseCachingOptions>, ILoggerFactory, IResponseCachingPolicyProvider, IResponseCachingKeyProvider)

Source:
ResponseCachingMiddleware.cs
Source:
ResponseCachingMiddleware.cs
public:
 ResponseCachingMiddleware(Microsoft::AspNetCore::Http::RequestDelegate ^ next, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::ResponseCaching::ResponseCachingOptions ^> ^ options, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory, Microsoft::AspNetCore::ResponseCaching::Internal::IResponseCachingPolicyProvider ^ policyProvider, Microsoft::AspNetCore::ResponseCaching::Internal::IResponseCachingKeyProvider ^ keyProvider);
public ResponseCachingMiddleware (Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.ResponseCaching.ResponseCachingOptions> options, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, Microsoft.AspNetCore.ResponseCaching.Internal.IResponseCachingPolicyProvider policyProvider, Microsoft.AspNetCore.ResponseCaching.Internal.IResponseCachingKeyProvider keyProvider);
new Microsoft.AspNetCore.ResponseCaching.ResponseCachingMiddleware : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.ResponseCaching.ResponseCachingOptions> * Microsoft.Extensions.Logging.ILoggerFactory * Microsoft.AspNetCore.ResponseCaching.Internal.IResponseCachingPolicyProvider * Microsoft.AspNetCore.ResponseCaching.Internal.IResponseCachingKeyProvider -> Microsoft.AspNetCore.ResponseCaching.ResponseCachingMiddleware
Public Sub New (next As RequestDelegate, options As IOptions(Of ResponseCachingOptions), loggerFactory As ILoggerFactory, policyProvider As IResponseCachingPolicyProvider, keyProvider As IResponseCachingKeyProvider)

参数

loggerFactory
ILoggerFactory
policyProvider
Microsoft.AspNetCore.ResponseCaching.Internal.IResponseCachingPolicyProvider
keyProvider
Microsoft.AspNetCore.ResponseCaching.Internal.IResponseCachingKeyProvider

适用于

ResponseCachingMiddleware(RequestDelegate, IOptions<ResponseCachingOptions>, ILoggerFactory, IResponseCachingPolicyProvider, IResponseCache, IResponseCachingKeyProvider)

public:
 ResponseCachingMiddleware(Microsoft::AspNetCore::Http::RequestDelegate ^ next, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::ResponseCaching::ResponseCachingOptions ^> ^ options, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory, Microsoft::AspNetCore::ResponseCaching::Internal::IResponseCachingPolicyProvider ^ policyProvider, Microsoft::AspNetCore::ResponseCaching::Internal::IResponseCache ^ cache, Microsoft::AspNetCore::ResponseCaching::Internal::IResponseCachingKeyProvider ^ keyProvider);
public ResponseCachingMiddleware (Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.ResponseCaching.ResponseCachingOptions> options, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, Microsoft.AspNetCore.ResponseCaching.Internal.IResponseCachingPolicyProvider policyProvider, Microsoft.AspNetCore.ResponseCaching.Internal.IResponseCache cache, Microsoft.AspNetCore.ResponseCaching.Internal.IResponseCachingKeyProvider keyProvider);
new Microsoft.AspNetCore.ResponseCaching.ResponseCachingMiddleware : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.ResponseCaching.ResponseCachingOptions> * Microsoft.Extensions.Logging.ILoggerFactory * Microsoft.AspNetCore.ResponseCaching.Internal.IResponseCachingPolicyProvider * Microsoft.AspNetCore.ResponseCaching.Internal.IResponseCache * Microsoft.AspNetCore.ResponseCaching.Internal.IResponseCachingKeyProvider -> Microsoft.AspNetCore.ResponseCaching.ResponseCachingMiddleware
Public Sub New (next As RequestDelegate, options As IOptions(Of ResponseCachingOptions), loggerFactory As ILoggerFactory, policyProvider As IResponseCachingPolicyProvider, cache As IResponseCache, keyProvider As IResponseCachingKeyProvider)

参数

loggerFactory
ILoggerFactory
policyProvider
Microsoft.AspNetCore.ResponseCaching.Internal.IResponseCachingPolicyProvider
cache
Microsoft.AspNetCore.ResponseCaching.Internal.IResponseCache
keyProvider
Microsoft.AspNetCore.ResponseCaching.Internal.IResponseCachingKeyProvider

适用于