|
|
@ -8,6 +8,7 @@ using System.Threading; |
|
|
|
using System.Threading.Tasks; |
|
|
|
using Autofac; |
|
|
|
using Autofac.Extensions.DependencyInjection; |
|
|
|
using Devspaces.Support; |
|
|
|
using HealthChecks.UI.Client; |
|
|
|
using Microsoft.ApplicationInsights.Extensibility; |
|
|
|
using Microsoft.ApplicationInsights.ServiceFabric; |
|
|
@ -55,6 +56,7 @@ namespace Webhooks.API |
|
|
|
.AddCustomDbContext(Configuration) |
|
|
|
.AddSwagger(Configuration) |
|
|
|
.AddCustomHealthCheck(Configuration) |
|
|
|
.AddDevspaces() |
|
|
|
.AddHttpClientServices(Configuration) |
|
|
|
.AddIntegrationServices(Configuration) |
|
|
|
.AddEventBus(Configuration) |
|
|
@ -294,8 +296,8 @@ namespace Webhooks.API |
|
|
|
services.AddHttpClient("extendedhandlerlifetime").SetHandlerLifetime(Timeout.InfiniteTimeSpan); |
|
|
|
//add http client services
|
|
|
|
services.AddHttpClient("GrantClient") |
|
|
|
.SetHandlerLifetime(TimeSpan.FromMinutes(5)); |
|
|
|
//.AddHttpMessageHandler<HttpClientAuthorizationDelegatingHandler>();
|
|
|
|
.SetHandlerLifetime(TimeSpan.FromMinutes(5)) |
|
|
|
.AddDevspacesSupport(); |
|
|
|
return services; |
|
|
|
} |
|
|
|
|
|
|
|