public void AddInsuranceHttp(IServiceCollection services)
{
services.AddHttpClient("INSURANCE", option =>
{
option.Timeout = new TimeSpan(0, 0, 60);
}).ConfigurePrimaryHttpMessageHandler(() =>
{
return new HttpClientHandler()
{
MaxRequestContentBufferSize = 102400 ,
AutomaticDecompression = DecompressionMethods.GZip ,
ServerCertificateCustomValidationCallback = (message, cert, chain, error) => true
};
});
}