Identity server syntax err edited.

This commit is contained in:
Onurkan Bakırcı 2022-03-22 01:00:36 +03:00 committed by GitHub
parent ce22713dd6
commit a738769950
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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