Browse Source

Identity server syntax err edited.

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

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

@ -89,28 +89,30 @@ namespace Microsoft.eShopOnContainers.Services.Identity.API
services.AddControllersWithViews();
services.AddRazorPages();
var basePath = AppDomain.CurrentDomain.BaseDirectory;
var fileName = typeof(Startup).GetTypeInfo().Assembly.GetName().Name + ".xml";
var xmlComments = Path.Combine(basePath, fileName);
options.IncludeXmlComments(xmlComments);
options.SwaggerDoc("v1", new OpenApiInfo
{
Title = "Microsoft - Identity HTTP API",
Version = "v1",
Description = "The Identity Service HTTP API",
TermsOfService = new Uri("https://microsoft.com/"),
Contact = new OpenApiContact
{
Name = "Microsoft Contact",
Url = new Uri("https://microsoft.com/")
},
License = new OpenApiLicense
services.AddSwaggerGen(options =>
{
var basePath = AppDomain.CurrentDomain.BaseDirectory;
var fileName = typeof(Startup).GetTypeInfo().Assembly.GetName().Name + ".xml";
var xmlComments = Path.Combine(basePath, fileName);
options.IncludeXmlComments(xmlComments);
options.SwaggerDoc("v1", new OpenApiInfo
{
Name = "Microsoft License",
Url = new Uri("https://microsoft.com/")
}
});
Title = "Microsoft - Identity HTTP API",
Version = "v1",
Description = "The Identity Service HTTP API",
TermsOfService = new Uri("https://microsoft.com/"),
Contact = new OpenApiContact
{
Name = "Microsoft Contact",
Url = new Uri("https://microsoft.com/")
},
License = new OpenApiLicense
{
Name = "Microsoft License",
Url = new Uri("https://microsoft.com/")
}
});
}
var container = new ContainerBuilder();
container.Populate(services);


Loading…
Cancel
Save