Share via


ResponseCachingMiddleware Constructors

Definition

Overloads

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

Creates a new 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

Creates a new 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)

Parameters

next
RequestDelegate

The RequestDelegate representing the next middleware in the pipeline.

options
IOptions<ResponseCachingOptions>

The options for this middleware.

loggerFactory
ILoggerFactory

The ILoggerFactory used for logging.

poolProvider
ObjectPoolProvider

The ObjectPoolProvider used for creating ObjectPool instances.

Applies to

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)

Parameters

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

Applies to

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)

Parameters

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

Applies to