private void EstablishServicesHttpClients(IServiceCollection services, CoreLib.IAppSettings setting)
 {
     services.AddHttpClient(setting.MembershipService.Host,
                            client => { client.BaseAddress = new Uri(setting.MembershipService.Host); })
     .ConfigurePrimaryHttpMessageHandler(() => new HttpClientHandler
     {
         AutomaticDecompression  = DecompressionMethods.GZip | DecompressionMethods.Deflate,
         MaxConnectionsPerServer = 500
     }).SetHandlerLifetime(TimeSpan.FromMinutes(20));
 }
 public DbProcedureService(CoreLib.IAppSettings appSettings)
     : base(appSettings.ConnectionString)
 {
 }