Solid.Http.Extensions.Zip Initialization - SOLIDSoftworks/Solid.Http GitHub Wiki
Initialization
Solid.Http.Extensions.Zip is designed to work with Solid.Http and Solid.Http.Core.
With Solid.Http.Core
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
services.AddSolidHttpCore(builder => builder.AddZip());
}
}
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
services.AddSolidHttpCore(builder =>
builder.AddZip(ZipArchiveMode.Update, "binary/octet-stream", "application/octet-stream"));
}
}
With Solid.Http
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
services.AddSolidHttpCore(builder => builder.AddZip());
}
}
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
services.AddSolidHttp(builder =>
builder.AddZip(ZipArchiveMode.Update, "binary/octet-stream", "application/octet-stream"));
}
}