This commit is contained in:
Daniel Abbatt 2021-03-11 00:32:25 +00:00 коммит произвёл GitHub
Родитель b98f274d81
Коммит 0b9a2d83e8
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -116,7 +116,7 @@ namespace Microsoft.Azure.WebJobs.Extensions.OpenApi
[HttpTrigger(AuthorizationLevel.Anonymous, "GET", Route = "swagger/ui")] HttpRequest req, [HttpTrigger(AuthorizationLevel.Anonymous, "GET", Route = "swagger/ui")] HttpRequest req,
ILogger log) ILogger log)
{ {
log.LogInformation($"SwaggerUI page was requested."); log.LogInformation("SwaggerUI page was requested.");
var result = await context.SwaggerUI var result = await context.SwaggerUI
.AddMetadata(context.OpenApiConfiguration.Info) .AddMetadata(context.OpenApiConfiguration.Info)
@ -147,7 +147,7 @@ namespace Microsoft.Azure.WebJobs.Extensions.OpenApi
[HttpTrigger(AuthorizationLevel.Anonymous, "GET", Route = "oauth2-redirect.html")] HttpRequest req, [HttpTrigger(AuthorizationLevel.Anonymous, "GET", Route = "oauth2-redirect.html")] HttpRequest req,
ILogger log) ILogger log)
{ {
log.LogInformation($"The oauth2-redirect.html page was requested."); log.LogInformation("The oauth2-redirect.html page was requested.");
var result = await context.SwaggerUI var result = await context.SwaggerUI
.AddServer(req, context.HttpSettings.RoutePrefix, context.OpenApiConfiguration) .AddServer(req, context.HttpSettings.RoutePrefix, context.OpenApiConfiguration)