RequestDecompressionServiceExtensions.AddRequestDecompression 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
AddRequestDecompression(IServiceCollection) |
新增要求解壓縮服務。 |
AddRequestDecompression(IServiceCollection, Action<RequestDecompressionOptions>) |
新增要求解壓縮服務,並設定相關選項。 |
AddRequestDecompression(IServiceCollection)
新增要求解壓縮服務。
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddRequestDecompression (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddRequestDecompression : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddRequestDecompression (services As IServiceCollection) As IServiceCollection
參數
- services
- IServiceCollection
IServiceCollection用於新增服務的 。
傳回
適用於
AddRequestDecompression(IServiceCollection, Action<RequestDecompressionOptions>)
新增要求解壓縮服務,並設定相關選項。
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddRequestDecompression (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.AspNetCore.RequestDecompression.RequestDecompressionOptions> configureOptions);
static member AddRequestDecompression : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.AspNetCore.RequestDecompression.RequestDecompressionOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddRequestDecompression (services As IServiceCollection, configureOptions As Action(Of RequestDecompressionOptions)) As IServiceCollection
參數
- services
- IServiceCollection
IServiceCollection用於新增服務的 。
- configureOptions
- Action<RequestDecompressionOptions>
設定 RequestDecompressionOptions 的委派。