Class CompressorInvokerBuilderExtensions
- Namespace
- IceRpc.Extensions.DependencyInjection
- Assembly
- IceRpc.Compressor.dll
Provides an extension method for IInvokerBuilder to add the compressor interceptor.
public static class CompressorInvokerBuilderExtensions
- Inheritance
-
CompressorInvokerBuilderExtensions
- Inherited Members
Methods
UseCompressor(IInvokerBuilder, CompressionFormat, CompressionLevel)
Adds a CompressorInterceptor to this invoker builder.
public static IInvokerBuilder UseCompressor(this IInvokerBuilder builder, CompressionFormat compressionFormat, CompressionLevel compressionLevel = CompressionLevel.Fastest)
Parameters
builder
IInvokerBuilderThe builder being configured.
compressionFormat
CompressionFormatThe compression format for the compress operation.
compressionLevel
CompressionLevelThe compression level for the compress operation.
Returns
- IInvokerBuilder
The builder being configured.