|
|
@ -66,6 +66,13 @@ |
|
|
|
services.AddHealthChecks(checks => |
|
|
|
{ |
|
|
|
checks.AddValueTaskCheck("HTTP Endpoint", () => new ValueTask<IHealthCheckResult>(HealthCheckResult.Healthy("Ok"))); |
|
|
|
|
|
|
|
var accountName = Configuration.GetValue<string>("AzureStorageAccountName"); |
|
|
|
var accountKey = Configuration.GetValue<string>("AzureStorageAccountKey"); |
|
|
|
if (!string.IsNullOrEmpty(accountName) && !string.IsNullOrEmpty(accountKey)) |
|
|
|
{ |
|
|
|
checks.AddAzureBlobStorageCheck(accountName, accountKey); |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
services.AddDbContext<MarketingContext>(options => |
|
|
|