Skip to content

Commit dbfc508

Browse files
committed
Webhooks API devspaces source code support
1 parent fbaaa8c commit dbfc508

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

src/Services/Webhooks/Webhooks.API/Dockerfile.develop

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ COPY ["src/BuildingBlocks/EventBus/EventBusRabbitMQ/EventBusRabbitMQ.csproj", "s
1111
COPY ["src/BuildingBlocks/EventBus/EventBusServiceBus/EventBusServiceBus.csproj", "src/BuildingBlocks/EventBus/EventBusServiceBus/"]
1212
COPY ["src/BuildingBlocks/EventBus/IntegrationEventLogEF/IntegrationEventLogEF.csproj", "src/BuildingBlocks/EventBus/IntegrationEventLogEF/"]
1313
COPY ["src/BuildingBlocks/WebHostCustomization/WebHost.Customization/WebHost.Customization.csproj", "src/BuildingBlocks/WebHostCustomization/WebHost.Customization/"]
14+
COPY ["src/BuildingBlocks/Devspaces.Support/Devspaces.Support.csproj", "src/BuildingBlocks/Devspaces.Support/"]
1415
COPY ["src/Services/Webhooks/Webhooks.API/Webhooks.API.csproj", "src/Services/Webhooks/Webhooks.API/"]
1516

1617
RUN dotnet restore src/Services/Webhooks/Webhooks.API/Webhooks.API.csproj -nowarn:msb3202,nu1503

src/Services/Webhooks/Webhooks.API/Startup.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
using System.Threading.Tasks;
99
using Autofac;
1010
using Autofac.Extensions.DependencyInjection;
11+
using Devspaces.Support;
1112
using HealthChecks.UI.Client;
1213
using Microsoft.ApplicationInsights.Extensibility;
1314
using Microsoft.ApplicationInsights.ServiceFabric;
@@ -55,6 +56,7 @@ public IServiceProvider ConfigureServices(IServiceCollection services)
5556
.AddCustomDbContext(Configuration)
5657
.AddSwagger(Configuration)
5758
.AddCustomHealthCheck(Configuration)
59+
.AddDevspaces()
5860
.AddHttpClientServices(Configuration)
5961
.AddIntegrationServices(Configuration)
6062
.AddEventBus(Configuration)
@@ -294,8 +296,8 @@ public static IServiceCollection AddHttpClientServices(this IServiceCollection s
294296
services.AddHttpClient("extendedhandlerlifetime").SetHandlerLifetime(Timeout.InfiniteTimeSpan);
295297
//add http client services
296298
services.AddHttpClient("GrantClient")
297-
.SetHandlerLifetime(TimeSpan.FromMinutes(5));
298-
//.AddHttpMessageHandler<HttpClientAuthorizationDelegatingHandler>();
299+
.SetHandlerLifetime(TimeSpan.FromMinutes(5))
300+
.AddDevspacesSupport();
299301
return services;
300302
}
301303

src/Services/Webhooks/Webhooks.API/Webhooks.API.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
<PackageReference Include="AspNetCore.HealthChecks.SqlServer" Version="2.2.0" />
2323
</ItemGroup>
2424
<ItemGroup>
25+
<ProjectReference Include="..\..\..\BuildingBlocks\Devspaces.Support\Devspaces.Support.csproj" />
2526
<ProjectReference Include="..\..\..\BuildingBlocks\EventBus\EventBusRabbitMQ\EventBusRabbitMQ.csproj" />
2627
<ProjectReference Include="..\..\..\BuildingBlocks\EventBus\EventBusServiceBus\EventBusServiceBus.csproj" />
2728
<ProjectReference Include="..\..\..\BuildingBlocks\EventBus\EventBus\EventBus.csproj" />

0 commit comments

Comments
 (0)