Browse Source

Startup typeof error edited

pull/1882/head
Onurkan Bakırcı 2 years ago
committed by GitHub
parent
commit
a04a00241b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 5 deletions
  1. +1
    -1
      src/Services/Basket/Basket.API/Startup.cs
  2. +1
    -1
      src/Services/Catalog/Catalog.API/Startup.cs
  3. +1
    -1
      src/Services/Identity/Identity.API/Startup.cs
  4. +1
    -1
      src/Services/Ordering/Ordering.API/Startup.cs
  5. +1
    -1
      src/Services/Webhooks/Webhooks.API/Startup.cs

+ 1
- 1
src/Services/Basket/Basket.API/Startup.cs View File

@ -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


+ 1
- 1
src/Services/Catalog/Catalog.API/Startup.cs View File

@ -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


+ 1
- 1
src/Services/Identity/Identity.API/Startup.cs View File

@ -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


+ 1
- 1
src/Services/Ordering/Ordering.API/Startup.cs View File

@ -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


+ 1
- 1
src/Services/Webhooks/Webhooks.API/Startup.cs View File

@ -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


Loading…
Cancel
Save