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 class CustomExtensionMethods | ||||||
| { | { | ||||||
|     public static IServiceCollection AddHealthChecks(this IServiceCollection services, IConfiguration configuration) |     public static IServiceCollection AddHealthChecks(this IServiceCollection services, IConfiguration configuration) | ||||||
| @ -9,7 +9,7 @@ public static class CustomExtensionMethods | |||||||
|         hcBuilder |         hcBuilder | ||||||
|             .AddSqlServer(_ => configuration.GetRequiredConnectionString("CatalogDB"), |             .AddSqlServer(_ => configuration.GetRequiredConnectionString("CatalogDB"), | ||||||
|                 name: "CatalogDB-check", |                 name: "CatalogDB-check", | ||||||
|                 tags: new string[] { "live", "ready" }); |                 tags: new string[] { "ready" }); | ||||||
| 
 | 
 | ||||||
|         var accountName = configuration["AzureStorageAccountName"]; |         var accountName = configuration["AzureStorageAccountName"]; | ||||||
|         var accountKey = configuration["AzureStorageAccountKey"]; |         var accountKey = configuration["AzureStorageAccountKey"]; | ||||||
| @ -20,7 +20,7 @@ public static class CustomExtensionMethods | |||||||
|                 .AddAzureBlobStorage( |                 .AddAzureBlobStorage( | ||||||
|                     $"DefaultEndpointsProtocol=https;AccountName={accountName};AccountKey={accountKey};EndpointSuffix=core.windows.net", |                     $"DefaultEndpointsProtocol=https;AccountName={accountName};AccountKey={accountKey};EndpointSuffix=core.windows.net", | ||||||
|                     name: "catalog-storage-check", |                     name: "catalog-storage-check", | ||||||
|                     tags: new string[] { "live", "ready" }); |                     tags: new string[] { "ready" }); | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         return services; |         return services; | ||||||
| @ -10,7 +10,7 @@ static class CustomExtensionsMethods | |||||||
|             .AddSqlServer(_ => |             .AddSqlServer(_ => | ||||||
|                 configuration.GetRequiredConnectionString("OrderingDB"), |                 configuration.GetRequiredConnectionString("OrderingDB"), | ||||||
|                 name: "OrderingDB-check", |                 name: "OrderingDB-check", | ||||||
|                 tags: new string[] { "live", "ready" }); |                 tags: new string[] { "ready" }); | ||||||
| 
 | 
 | ||||||
|         return services; |         return services; | ||||||
|     } |     } | ||||||
| @ -25,7 +25,7 @@ | |||||||
|             .AddSqlServer(_ => |             .AddSqlServer(_ => | ||||||
|                 configuration.GetRequiredConnectionString("WebHooksDb"), |                 configuration.GetRequiredConnectionString("WebHooksDb"), | ||||||
|                 name: "WebhooksApiDb-check", |                 name: "WebhooksApiDb-check", | ||||||
|                 tags: new string[] { "ready", "live" }); |                 tags: new string[] { "ready" }); | ||||||
| 
 | 
 | ||||||
|         return services; |         return services; | ||||||
|     } |     } | ||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user