File tree Expand file tree Collapse file tree
src/Services/Marketing/Marketing.API Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5757 <ItemGroup >
5858 <ProjectReference Include =" ..\..\..\BuildingBlocks\EventBus\EventBusRabbitMQ\EventBusRabbitMQ.csproj" />
5959 <ProjectReference Include =" ..\..\..\BuildingBlocks\HealthChecks\src\Microsoft.AspNetCore.HealthChecks\Microsoft.AspNetCore.HealthChecks.csproj" />
60+ <ProjectReference Include =" ..\..\..\BuildingBlocks\HealthChecks\src\Microsoft.Extensions.HealthChecks.AzureStorage\Microsoft.Extensions.HealthChecks.AzureStorage.csproj" />
6061 <ProjectReference Include =" ..\..\..\BuildingBlocks\HealthChecks\src\Microsoft.Extensions.HealthChecks\Microsoft.Extensions.HealthChecks.csproj" />
6162 <ProjectReference Include =" ..\..\..\BuildingBlocks\EventBus\EventBusServiceBus\EventBusServiceBus.csproj" />
6263 </ItemGroup >
Original file line number Diff line number Diff line change @@ -66,6 +66,13 @@ public IServiceProvider ConfigureServices(IServiceCollection services)
6666 services . AddHealthChecks ( checks =>
6767 {
6868 checks . AddValueTaskCheck ( "HTTP Endpoint" , ( ) => new ValueTask < IHealthCheckResult > ( HealthCheckResult . Healthy ( "Ok" ) ) ) ;
69+
70+ var accountName = Configuration . GetValue < string > ( "AzureStorageAccountName" ) ;
71+ var accountKey = Configuration . GetValue < string > ( "AzureStorageAccountKey" ) ;
72+ if ( ! string . IsNullOrEmpty ( accountName ) && ! string . IsNullOrEmpty ( accountKey ) )
73+ {
74+ checks . AddAzureBlobStorageCheck ( accountName , accountKey ) ;
75+ }
6976 } ) ;
7077
7178 services . AddDbContext < MarketingContext > ( options =>
You can’t perform that action at this time.
0 commit comments