Fixed local run bug for catalog.api
This commit is contained in:
		
							parent
							
								
									d43d372ade
								
							
						
					
					
						commit
						bbb26af34b
					
				| @ -1,9 +1,10 @@ | ||||
| global using Azure.Core; | ||||
| global using Azure.Identity; | ||||
| global using Autofac.Extensions.DependencyInjection; | ||||
| global using Autofac; | ||||
| global using Catalog.API.Extensions; | ||||
| global using Catalog.API.Infrastructure.ActionResults; | ||||
| global using Catalog.API.Infrastructure.Exceptions; | ||||
| global using global::Catalog.API.Extensions; | ||||
| global using global::Catalog.API.IntegrationEvents; | ||||
| global using Grpc.Core; | ||||
| global using Microsoft.AspNetCore.Hosting; | ||||
| @ -23,6 +24,7 @@ global using Microsoft.eShopOnContainers.BuildingBlocks.IntegrationEventLogEF.Ut | ||||
| global using Microsoft.eShopOnContainers.BuildingBlocks.IntegrationEventLogEF; | ||||
| global using Microsoft.eShopOnContainers.Services.Catalog.API.Infrastructure; | ||||
| global using Microsoft.eShopOnContainers.Services.Catalog.API.Infrastructure.EntityConfigurations; | ||||
| global using Microsoft.eShopOnContainers.Services.Catalog.API; | ||||
| global using Microsoft.eShopOnContainers.Services.Catalog.API.IntegrationEvents.Events; | ||||
| global using Microsoft.eShopOnContainers.Services.Catalog.API.Model; | ||||
| global using Microsoft.eShopOnContainers.Services.Catalog.API.ViewModel; | ||||
| @ -30,7 +32,6 @@ global using Microsoft.eShopOnContainers.Services.Catalog.API.Grpc; | ||||
| global using Microsoft.Extensions.Configuration; | ||||
| global using Microsoft.Extensions.DependencyInjection; | ||||
| global using Microsoft.Extensions.Hosting; | ||||
| global using Microsoft.Extensions.Logging; | ||||
| global using Microsoft.Extensions.Options; | ||||
| global using Polly.Retry; | ||||
| global using Polly; | ||||
| @ -47,8 +48,6 @@ global using System.Net; | ||||
| global using System.Text.RegularExpressions; | ||||
| global using System.Threading.Tasks; | ||||
| global using System; | ||||
| global using Autofac; | ||||
| global using Autofac.Extensions.DependencyInjection; | ||||
| global using global::Catalog.API.Infrastructure.Filters; | ||||
| global using HealthChecks.UI.Client; | ||||
| global using Microsoft.AspNetCore.Diagnostics.HealthChecks; | ||||
|  | ||||
| @ -1,7 +1,4 @@ | ||||
|  | ||||
| using Microsoft.eShopOnContainers.Services.Catalog.API; | ||||
| 
 | ||||
| var configuration = GetConfiguration(); | ||||
| var configuration = GetConfiguration(); | ||||
| 
 | ||||
| Log.Logger = CreateSerilogLogger(configuration); | ||||
| 
 | ||||
| @ -96,7 +93,7 @@ IConfiguration GetConfiguration() | ||||
|             config["Vault:TenantId"], | ||||
|             config["Vault:ClientId"], | ||||
|             config["Vault:ClientSecret"]); | ||||
|         builder.AddAzureKeyVault(new Uri($"https://{config["Vault:Name"]}.vault.azure.net/"), credential); | ||||
|         //builder.AddAzureKeyVault(new Uri($"https://{config["Vault:Name"]}.vault.azure.net/"), credential);         | ||||
|     } | ||||
| 
 | ||||
|     return builder.Build(); | ||||
|  | ||||
| @ -221,8 +221,7 @@ | ||||
|         public static IServiceCollection AddSwagger(this IServiceCollection services, IConfiguration configuration) | ||||
|         { | ||||
|             services.AddSwaggerGen(options => | ||||
|             { | ||||
|                 options.DescribeAllEnumsAsStrings(); | ||||
|             {                 | ||||
|                 options.SwaggerDoc("v1", new OpenApiInfo | ||||
|                 { | ||||
|                     Title = "eShopOnContainers - Catalog HTTP API", | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user