From a04a00241bfdac9a4ee7df159267057840b77be8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Onurkan=20Bak=C4=B1rc=C4=B1?= Date: Mon, 21 Mar 2022 15:44:40 +0300 Subject: [PATCH] Startup typeof error edited --- src/Services/Basket/Basket.API/Startup.cs | 2 +- src/Services/Catalog/Catalog.API/Startup.cs | 2 +- src/Services/Identity/Identity.API/Startup.cs | 2 +- src/Services/Ordering/Ordering.API/Startup.cs | 2 +- src/Services/Webhooks/Webhooks.API/Startup.cs | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Services/Basket/Basket.API/Startup.cs b/src/Services/Basket/Basket.API/Startup.cs index cfe95dcc5..6e3171bf9 100644 --- a/src/Services/Basket/Basket.API/Startup.cs +++ b/src/Services/Basket/Basket.API/Startup.cs @@ -30,7 +30,7 @@ public class Startup services.AddSwaggerGen(options => { var basePath = AppDomain.CurrentDomain.BaseDirectory; - var fileName = typeof(Program).GetTypeInfo().Assembly.GetName().Name + ".xml"; + var fileName = typeof(Startup).GetTypeInfo().Assembly.GetName().Name + ".xml"; var xmlComments = Path.Combine(basePath, fileName); options.IncludeXmlComments(xmlComments); options.SwaggerDoc("v1", new OpenApiInfo diff --git a/src/Services/Catalog/Catalog.API/Startup.cs b/src/Services/Catalog/Catalog.API/Startup.cs index 39048cb61..0f0e75361 100644 --- a/src/Services/Catalog/Catalog.API/Startup.cs +++ b/src/Services/Catalog/Catalog.API/Startup.cs @@ -223,7 +223,7 @@ public static class CustomExtensionMethods services.AddSwaggerGen(options => { var basePath = AppDomain.CurrentDomain.BaseDirectory; - var fileName = typeof(Program).GetTypeInfo().Assembly.GetName().Name + ".xml"; + var fileName = typeof(Startup).GetTypeInfo().Assembly.GetName().Name + ".xml"; var xmlComments = Path.Combine(basePath, fileName); options.IncludeXmlComments(xmlComments); options.SwaggerDoc("v1", new OpenApiInfo diff --git a/src/Services/Identity/Identity.API/Startup.cs b/src/Services/Identity/Identity.API/Startup.cs index 2528d88a1..51b1d4f8e 100644 --- a/src/Services/Identity/Identity.API/Startup.cs +++ b/src/Services/Identity/Identity.API/Startup.cs @@ -90,7 +90,7 @@ namespace Microsoft.eShopOnContainers.Services.Identity.API services.AddRazorPages(); var basePath = AppDomain.CurrentDomain.BaseDirectory; - var fileName = typeof(Program).GetTypeInfo().Assembly.GetName().Name + ".xml"; + var fileName = typeof(Startup).GetTypeInfo().Assembly.GetName().Name + ".xml"; var xmlComments = Path.Combine(basePath, fileName); options.IncludeXmlComments(xmlComments); options.SwaggerDoc("v1", new OpenApiInfo diff --git a/src/Services/Ordering/Ordering.API/Startup.cs b/src/Services/Ordering/Ordering.API/Startup.cs index c48b77d7e..b91ed3f8d 100644 --- a/src/Services/Ordering/Ordering.API/Startup.cs +++ b/src/Services/Ordering/Ordering.API/Startup.cs @@ -216,7 +216,7 @@ static class CustomExtensionsMethods services.AddSwaggerGen(options => { var basePath = AppDomain.CurrentDomain.BaseDirectory; - var fileName = typeof(Program).GetTypeInfo().Assembly.GetName().Name + ".xml"; + var fileName = typeof(Startup).GetTypeInfo().Assembly.GetName().Name + ".xml"; var xmlComments = Path.Combine(basePath, fileName); options.IncludeXmlComments(xmlComments); options.SwaggerDoc("v1", new OpenApiInfo diff --git a/src/Services/Webhooks/Webhooks.API/Startup.cs b/src/Services/Webhooks/Webhooks.API/Startup.cs index 1d9359ffa..35ccf8f88 100644 --- a/src/Services/Webhooks/Webhooks.API/Startup.cs +++ b/src/Services/Webhooks/Webhooks.API/Startup.cs @@ -140,7 +140,7 @@ static class CustomExtensionMethods services.AddSwaggerGen(options => { var basePath = AppDomain.CurrentDomain.BaseDirectory; - var fileName = typeof(Program).GetTypeInfo().Assembly.GetName().Name + ".xml"; + var fileName = typeof(Startup).GetTypeInfo().Assembly.GetName().Name + ".xml"; var xmlComments = Path.Combine(basePath, fileName); options.IncludeXmlComments(xmlComments); options.SwaggerDoc("v1", new OpenApiInfo