Move extensions to Extensions folder
This commit is contained in:
parent
acd9a6d04b
commit
5ea034106c
@ -1,5 +1,4 @@
|
||||
namespace Microsoft.eShopOnContainers.Services.Basket.API;
|
||||
|
||||
|
||||
public static class CustomExtensionMethods
|
||||
{
|
||||
public static IServiceCollection AddHealthChecks(this IServiceCollection services, IConfiguration configuration)
|
@ -9,7 +9,7 @@ public static class CustomExtensionMethods
|
||||
hcBuilder
|
||||
.AddSqlServer(_ => configuration.GetRequiredConnectionString("CatalogDB"),
|
||||
name: "CatalogDB-check",
|
||||
tags: new string[] { "live", "ready" });
|
||||
tags: new string[] { "ready" });
|
||||
|
||||
var accountName = configuration["AzureStorageAccountName"];
|
||||
var accountKey = configuration["AzureStorageAccountKey"];
|
||||
@ -20,7 +20,7 @@ public static class CustomExtensionMethods
|
||||
.AddAzureBlobStorage(
|
||||
$"DefaultEndpointsProtocol=https;AccountName={accountName};AccountKey={accountKey};EndpointSuffix=core.windows.net",
|
||||
name: "catalog-storage-check",
|
||||
tags: new string[] { "live", "ready" });
|
||||
tags: new string[] { "ready" });
|
||||
}
|
||||
|
||||
return services;
|
@ -10,7 +10,7 @@ static class CustomExtensionsMethods
|
||||
.AddSqlServer(_ =>
|
||||
configuration.GetRequiredConnectionString("OrderingDB"),
|
||||
name: "OrderingDB-check",
|
||||
tags: new string[] { "live", "ready" });
|
||||
tags: new string[] { "ready" });
|
||||
|
||||
return services;
|
||||
}
|
@ -25,7 +25,7 @@
|
||||
.AddSqlServer(_ =>
|
||||
configuration.GetRequiredConnectionString("WebHooksDb"),
|
||||
name: "WebhooksApiDb-check",
|
||||
tags: new string[] { "ready", "live" });
|
||||
tags: new string[] { "ready" });
|
||||
|
||||
return services;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user