Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
sungam3r committed Feb 2, 2024
1 parent b7f55be commit 8a971f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions samples/HealthChecks.NET6-7/Program.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using Azure.Storage.Blobs;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Diagnostics.HealthChecks;

Expand All @@ -12,6 +13,7 @@ internal static class Program
private static async Task Main()
{
using var serviceProvider = new ServiceCollection()
.AddSingleton(new BlobServiceClient("BlobEndpoint=https://unit-test.blob.core.windows.net"))
.AddLogging()
.AddHealthChecks()
.AddAzureBlobStorage()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
<PackageReference Include="EventStore.Client.Grpc.Streams" Version="23.1.0" />
<PackageReference Include="Microsoft.Extensions.Diagnostics.HealthChecks" Version="6.0.20" Condition="'$(TargetFramework)' == 'net6.0'"/>
<PackageReference Include="Microsoft.Extensions.Diagnostics.HealthChecks" Version="7.0.9" Condition="'$(TargetFramework)' == 'net7.0'"/>
<PackageReference Include="Microsoft.Extensions.Diagnostics.HealthChecks" Version="8.0.0" Condition="'$(TargetFramework)' != 'net6.0' and '$(TargetFramework)' != 'net7.0'"/>
</ItemGroup>

</Project>

0 comments on commit 8a971f2

Please sign in to comment.