ResponseCompressionProvider Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
If no compression providers are specified then GZip is used by default.
public:
ResponseCompressionProvider(IServiceProvider ^ services, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::ResponseCompression::ResponseCompressionOptions ^> ^ options);
public ResponseCompressionProvider (IServiceProvider services, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.ResponseCompression.ResponseCompressionOptions> options);
new Microsoft.AspNetCore.ResponseCompression.ResponseCompressionProvider : IServiceProvider * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.ResponseCompression.ResponseCompressionOptions> -> Microsoft.AspNetCore.ResponseCompression.ResponseCompressionProvider
Public Sub New (services As IServiceProvider, options As IOptions(Of ResponseCompressionOptions))
Parameters
- services
- IServiceProvider
Services to use when instantiating compression providers.
- options
- IOptions<ResponseCompressionOptions>
The options for this instance.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for