This library provides none compression support for the Ogu.Compressions library
$ dotnet add package Ogu.Compressions.NoneThis library provides no-operation compression implementation that simply returns the input unmodified.
dotnet add package Ogu.Compressions.None
Registering provider:
services.AddNoneCompression();
You can customize configuration by passing action delegate:
services.AddNoneCompression(options =>
{
options.Level = CompressionLevel.Optimal;
options.BufferSize = 4096;
});
Or configure via IOptions<NoneCompressionOptions>:
services.Configure<NoneCompressionOptions>(options => { /* configure here */ });
| Configuration | Default Value |
|---|---|
| Level | CompressionLevel.Fastest |
| BufferSize | 81920 |
Resolving service:
you can inject the compression-specific interfaces directly:
private readonly INoneCompression _compression;
public NoneController(INoneCompression compression)
{
_compression = compression;
}
Links: