Revising .NET 5 Isolated Worker (#187)

This commit is contained in:
Justin Yoo 2021-08-04 23:47:45 +09:00 коммит произвёл GitHub
Родитель bbd484c12e
Коммит e47a652261
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
125 изменённых файлов: 488 добавлений и 2655 удалений

1
.gitignore поставляемый
Просмотреть файл

@ -293,3 +293,4 @@ __pycache__/
outputs/
.DS_Store
NuGet.config

8
.vscode/settings.json поставляемый
Просмотреть файл

@ -1,17 +1,17 @@
{
// "azureFunctions.deploySubpath": "samples/Microsoft.Azure.Functions.Worker.Extensions.OpenApi.FunctionApp.V3Net5/bin/Release/net5.0/publish",
"azureFunctions.deploySubpath": "samples/Microsoft.Azure.Functions.Worker.Extensions.OpenApi.FunctionApp.V3Net5/bin/Release/net5.0/publish",
// "azureFunctions.deploySubpath": "samples/Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.V1Proxy/bin/Release/netcoreapp3.1/publish",
// "azureFunctions.deploySubpath": "samples/Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.V2IoC/bin/Release/netcoreapp2.1/publish",
// "azureFunctions.deploySubpath": "samples/Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.V2Static/bin/Release/netcoreapp2.1/publish",
// "azureFunctions.deploySubpath": "samples/Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.V3IoC/bin/Release/netcoreapp3.1/publish",
"azureFunctions.deploySubpath": "samples/Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.V3Static/bin/Release/netcoreapp3.1/publish",
// "azureFunctions.deploySubpath": "samples/Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.V3Static/bin/Release/netcoreapp3.1/publish",
// "azureFunctions.projectSubpath": "samples/Microsoft.Azure.Functions.Worker.Extensions.OpenApi.FunctionApp.V3Net5",
"azureFunctions.projectSubpath": "samples/Microsoft.Azure.Functions.Worker.Extensions.OpenApi.FunctionApp.V3Net5",
// "azureFunctions.projectSubpath": "samples/Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.V1Proxy",
// "azureFunctions.projectSubpath": "samples/Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.V2IoC",
// "azureFunctions.projectSubpath": "samples/Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.V2Static",
// "azureFunctions.projectSubpath": "samples/Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.V3IoC",
"azureFunctions.projectSubpath": "samples/Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.V3Static",
// "azureFunctions.projectSubpath": "samples/Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.V3Static",
"azureFunctions.projectLanguage": "C#",
"azureFunctions.projectRuntime": "~3",

20
.vscode/tasks.json поставляемый
Просмотреть файл

@ -12,12 +12,12 @@
"type": "process",
"problemMatcher": "$msCompile",
"options": {
// "cwd": "${workspaceFolder}/samples/Microsoft.Azure.Functions.Worker.Extensions.OpenApi.FunctionApp.V3Net5"
"cwd": "${workspaceFolder}/samples/Microsoft.Azure.Functions.Worker.Extensions.OpenApi.FunctionApp.V3Net5"
// "cwd": "${workspaceFolder}/samples/Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.V1Proxy"
// "cwd": "${workspaceFolder}/samples/Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.V2IoC"
// "cwd": "${workspaceFolder}/samples/Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.V2Static"
// "cwd": "${workspaceFolder}/samples/Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.V3IoC"
"cwd": "${workspaceFolder}/samples/Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.V3Static"
// "cwd": "${workspaceFolder}/samples/Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.V3Static"
}
},
{
@ -36,12 +36,12 @@
},
"problemMatcher": "$msCompile",
"options": {
// "cwd": "${workspaceFolder}/samples/Microsoft.Azure.Functions.Worker.Extensions.OpenApi.FunctionApp.V3Net5"
"cwd": "${workspaceFolder}/samples/Microsoft.Azure.Functions.Worker.Extensions.OpenApi.FunctionApp.V3Net5"
// "cwd": "${workspaceFolder}/samples/Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.V1Proxy"
// "cwd": "${workspaceFolder}/samples/Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.V2IoC"
// "cwd": "${workspaceFolder}/samples/Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.V2Static"
// "cwd": "${workspaceFolder}/samples/Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.V3IoC"
"cwd": "${workspaceFolder}/samples/Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.V3Static"
// "cwd": "${workspaceFolder}/samples/Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.V3Static"
}
},
{
@ -57,12 +57,12 @@
"type": "process",
"problemMatcher": "$msCompile",
"options": {
// "cwd": "${workspaceFolder}/samples/Microsoft.Azure.Functions.Worker.Extensions.OpenApi.FunctionApp.V3Net5"
"cwd": "${workspaceFolder}/samples/Microsoft.Azure.Functions.Worker.Extensions.OpenApi.FunctionApp.V3Net5"
// "cwd": "${workspaceFolder}/samples/Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.V1Proxy"
// "cwd": "${workspaceFolder}/samples/Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.V2IoC"
// "cwd": "${workspaceFolder}/samples/Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.V2Static"
// "cwd": "${workspaceFolder}/samples/Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.V3IoC"
"cwd": "${workspaceFolder}/samples/Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.V3Static"
// "cwd": "${workspaceFolder}/samples/Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.V3Static"
}
},
{
@ -79,12 +79,12 @@
"dependsOn": "clean release",
"problemMatcher": "$msCompile",
"options": {
// "cwd": "${workspaceFolder}/samples/Microsoft.Azure.Functions.Worker.Extensions.OpenApi.FunctionApp.V3Net5"
"cwd": "${workspaceFolder}/samples/Microsoft.Azure.Functions.Worker.Extensions.OpenApi.FunctionApp.V3Net5"
// "cwd": "${workspaceFolder}/samples/Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.V1Proxy"
// "cwd": "${workspaceFolder}/samples/Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.V2IoC"
// "cwd": "${workspaceFolder}/samples/Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.V2Static"
// "cwd": "${workspaceFolder}/samples/Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.V3IoC"
"cwd": "${workspaceFolder}/samples/Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.V3Static"
// "cwd": "${workspaceFolder}/samples/Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.V3Static"
}
},
{
@ -104,12 +104,12 @@
"type": "func",
"dependsOn": "build",
"options": {
// "cwd": "${workspaceFolder}/samples/Microsoft.Azure.Functions.Worker.Extensions.OpenApi.FunctionApp.V3Net5/bin/Debug/net5.0"
"cwd": "${workspaceFolder}/samples/Microsoft.Azure.Functions.Worker.Extensions.OpenApi.FunctionApp.V3Net5/bin/Debug/net5.0"
// "cwd": "${workspaceFolder}/samples/Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.V3Proxy/bin/Debug/netcoreapp3.1"
// "cwd": "${workspaceFolder}/samples/Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.V2IoC/bin/Debug/netcoreapp2.1"
// "cwd": "${workspaceFolder}/samples/Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.V2Static/bin/Debug/netcoreapp2.1"
// "cwd": "${workspaceFolder}/samples/Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.V3IoC/bin/Debug/netcoreapp3.1"
"cwd": "${workspaceFolder}/samples/Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.V3Static/bin/Debug/netcoreapp3.1"
// "cwd": "${workspaceFolder}/samples/Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.V3Static/bin/Debug/netcoreapp3.1"
},
"command": "host start",
"isBackground": true,

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

@ -16,54 +16,10 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{810145E0-41C
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Azure.Functions.Worker.Extensions.OpenApi", "src\Microsoft.Azure.Functions.Worker.Extensions.OpenApi\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.csproj", "{B409837F-3D64-407E-88AE-C0F932F1A4DE}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Azure.Functions.Worker.Extensions.OpenApi.Core.Extensions", "src\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.Core.Extensions\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.Core.Extensions.csproj", "{B9ADD076-3567-4795-910B-3A6993EF7D84}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OAuth2Redirect.Admin", "src\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OAuth2Redirect.Admin\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OAuth2Redirect.Admin.csproj", "{976AE133-2456-4278-8F1F-5BB677AAAB69}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OAuth2Redirect.Anonymous", "src\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OAuth2Redirect.Anonymous\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OAuth2Redirect.Anonymous.csproj", "{3172BC5E-8822-41D4-861F-7B6E12CC9AD6}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OAuth2Redirect.Function", "src\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OAuth2Redirect.Function\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OAuth2Redirect.Function.csproj", "{BFAE9A46-1F63-4B33-B9AE-A027C7C14A0A}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OAuth2Redirect.System", "src\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OAuth2Redirect.System\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OAuth2Redirect.System.csproj", "{6DE3D942-6F09-4E61-8E80-FB88DBEC3A67}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OAuth2Redirect.User", "src\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OAuth2Redirect.User\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OAuth2Redirect.User.csproj", "{510139D7-D45D-43B6-B983-1CC9599979B5}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OpenApiDocument.Admin", "src\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OpenApiDocument.Admin\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OpenApiDocument.Admin.csproj", "{5D768182-D3C7-439B-9BDB-47351BFD5FB0}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OpenApiDocument.Anonymous", "src\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OpenApiDocument.Anonymous\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OpenApiDocument.Anonymous.csproj", "{38CBC941-94FD-4773-9ADF-8C043F4BD9DE}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OpenApiDocument.Function", "src\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OpenApiDocument.Function\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OpenApiDocument.Function.csproj", "{2CF00ED1-577C-4260-86E5-E9A1CE0E937C}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OpenApiDocument.System", "src\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OpenApiDocument.System\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OpenApiDocument.System.csproj", "{99220D67-EF4A-4BC6-9682-198AE893F7F1}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OpenApiDocument.User", "src\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OpenApiDocument.User\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OpenApiDocument.User.csproj", "{5204D205-19C8-41FE-838B-AB26C3B06452}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerDocument.Admin", "src\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerDocument.Admin\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerDocument.Admin.csproj", "{50214B7F-0F36-4088-93C8-CF1AADAFEA7B}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerDocument.Anonymous", "src\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerDocument.Anonymous\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerDocument.Anonymous.csproj", "{E534DED4-D584-46A6-8993-90F7C77F0416}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerDocument.Function", "src\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerDocument.Function\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerDocument.Function.csproj", "{A140DA49-14F0-4810-9425-D2D7226F4C3A}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerDocument.System", "src\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerDocument.System\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerDocument.System.csproj", "{5D0114BF-142C-45CC-B5B6-C6F48C3B4E8C}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerDocument.User", "src\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerDocument.User\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerDocument.User.csproj", "{4F9F4528-798E-4324-BF34-4C969599805E}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerUI.Admin", "src\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerUI.Admin\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerUI.Admin.csproj", "{FD06C296-2755-45D7-8D9D-F4DDCFCE1FEA}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerUI.Anonymous", "src\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerUI.Anonymous\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerUI.Anonymous.csproj", "{ADEAAE86-0827-4342-926E-26E9C381826B}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerUI.Function", "src\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerUI.Function\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerUI.Function.csproj", "{FD4B3758-EF4B-4FC9-B87C-16A3256DB7A6}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerUI.System", "src\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerUI.System\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerUI.System.csproj", "{BDF95384-4DB4-491E-B042-5CF066E1F86B}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerUI.User", "src\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerUI.User\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerUI.User.csproj", "{CC524B92-FBCF-4379-85B4-608351BFC666}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Azure.WebJobs.Extensions.OpenApi.AppSettings", "src\Microsoft.Azure.WebJobs.Extensions.OpenApi.AppSettings\Microsoft.Azure.WebJobs.Extensions.OpenApi.AppSettings.csproj", "{64A22A3C-D0C4-4DE9-A8D5-2CEF766EB500}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Azure.WebJobs.Extensions.OpenApi.Core", "src\Microsoft.Azure.WebJobs.Extensions.OpenApi.Core\Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.csproj", "{B18937F6-B39F-46BB-BB3C-86C0693993EF}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Extensions", "src\Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Extensions\Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Extensions.csproj", "{CDBD5665-D6CC-4C10-9872-A4886AC6275A}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Azure.WebJobs.Extensions.OpenApi", "src\Microsoft.Azure.WebJobs.Extensions.OpenApi\Microsoft.Azure.WebJobs.Extensions.OpenApi.csproj", "{D405655F-C8BE-4134-893C-ADB4918B0624}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Azure.WebJobs.Extensions.OpenApi.CLI", "src\Microsoft.Azure.WebJobs.Extensions.OpenApi.CLI\Microsoft.Azure.WebJobs.Extensions.OpenApi.CLI.csproj", "{7AD094AA-01D6-4644-B9B6-E555A029D6D7}"
@ -72,9 +28,11 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "samples", "samples", "{66D8
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Azure.Functions.Worker.Extensions.OpenApi.FunctionApp.V3Net5", "samples\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.FunctionApp.V3Net5\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.FunctionApp.V3Net5.csproj", "{BDE6F761-880E-47C3-B40C-956F470E3D10}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.Interfaces", "samples\Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.Interfaces\Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.Interfaces.csproj", "{F1438954-24F5-4D41-AFEA-46D9E1E74C72}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.Models", "samples\Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.Models\Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.Models.csproj", "{6ABA1666-BC42-487F-B156-3DC79347BD6B}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.Interfaces", "samples\Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.Interfaces\Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.Interfaces.csproj", "{F1438954-24F5-4D41-AFEA-46D9E1E74C72}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.Models.PetStore", "samples\Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.Models.PetStore\Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.Models.PetStore.csproj", "{0FBF046E-7B17-410C-8219-8381D07726DF}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.Services", "samples\Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.Services\Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.Services.csproj", "{B7CF1C77-FE6F-4586-93FE-801671A5EAFD}"
EndProject
@ -92,28 +50,10 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{8B62E3FB-9
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Azure.Functions.Worker.Extensions.OpenApi.Tests", "test\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.Tests\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.Tests.csproj", "{B6C398B2-6F74-4E50-A49F-F36B9825F45E}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Azure.Functions.Worker.Extensions.OpenApi.Core.Extensions.Tests.Fakes", "test\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.Core.Extensions.Tests.Fakes\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.Core.Extensions.Tests.Fakes.csproj", "{56E00DEF-F87C-4893-8902-2844DE1AEB8D}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Azure.Functions.Worker.Extensions.OpenApi.Core.Extensions.Tests", "test\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.Core.Extensions.Tests\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.Core.Extensions.Tests.csproj", "{6138EFEB-3C50-4A35-BDFA-7270A5F621BD}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Azure.Functions.Worker.Extensions.OpenApi.FunctionProviders.Admin.Tests", "test\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.FunctionProviders.Admin.Tests\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.FunctionProviders.Admin.Tests.csproj", "{01141225-BA2E-412F-89A3-97654C1A803E}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Azure.Functions.Worker.Extensions.OpenApi.FunctionProviders.Anonymous.Tests", "test\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.FunctionProviders.Anonymous.Tests\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.FunctionProviders.Anonymous.Tests.csproj", "{3A6BEE5E-FEE0-4759-84D3-B66C1F76416F}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Azure.Functions.Worker.Extensions.OpenApi.FunctionProviders.Function.Tests", "test\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.FunctionProviders.Function.Tests\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.FunctionProviders.Function.Tests.csproj", "{261B2F47-80E7-4E6E-A7AF-8418812DAF81}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Azure.Functions.Worker.Extensions.OpenApi.FunctionProviders.System.Tests", "test\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.FunctionProviders.System.Tests\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.FunctionProviders.System.Tests.csproj", "{131506C3-DCEE-455A-A204-CC10B2678563}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Azure.Functions.Worker.Extensions.OpenApi.FunctionProviders.User.Tests", "test\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.FunctionProviders.User.Tests\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.FunctionProviders.User.Tests.csproj", "{90F2EBC9-15E1-4305-8485-244CA8EFF8E1}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Azure.WebJobs.Extensions.OpenApi.AppSettings.Tests.Fakes", "test\Microsoft.Azure.WebJobs.Extensions.OpenApi.AppSettings.Tests.Fakes\Microsoft.Azure.WebJobs.Extensions.OpenApi.AppSettings.Tests.Fakes.csproj", "{AC89B7CF-0FA5-49EE-97A8-AB39A5F211A8}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Azure.WebJobs.Extensions.OpenApi.AppSettings.Tests", "test\Microsoft.Azure.WebJobs.Extensions.OpenApi.AppSettings.Tests\Microsoft.Azure.WebJobs.Extensions.OpenApi.AppSettings.Tests.csproj", "{AEF35BD6-EA9A-4159-86F4-49AF7D17A9A8}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Extensions.Tests.Fakes", "test\Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Extensions.Tests.Fakes\Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Extensions.Tests.Fakes.csproj", "{134C4854-1A8E-4093-9526-32D308CDC7BC}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Extensions.Tests", "test\Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Extensions.Tests\Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Extensions.Tests.csproj", "{6735CCE7-5142-490B-9A06-C7471604E93B}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Tests.Fakes", "test\Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Tests.Fakes\Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Tests.Fakes.csproj", "{1D1A5ED5-A1A1-4082-ACAF-30079AF31AC6}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Tests", "test\Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Tests\Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Tests.csproj", "{968CD847-80D0-4740-92D5-F5553461EC04}"
@ -132,90 +72,6 @@ Global
{B409837F-3D64-407E-88AE-C0F932F1A4DE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B409837F-3D64-407E-88AE-C0F932F1A4DE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B409837F-3D64-407E-88AE-C0F932F1A4DE}.Release|Any CPU.Build.0 = Release|Any CPU
{B9ADD076-3567-4795-910B-3A6993EF7D84}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B9ADD076-3567-4795-910B-3A6993EF7D84}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B9ADD076-3567-4795-910B-3A6993EF7D84}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B9ADD076-3567-4795-910B-3A6993EF7D84}.Release|Any CPU.Build.0 = Release|Any CPU
{976AE133-2456-4278-8F1F-5BB677AAAB69}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{976AE133-2456-4278-8F1F-5BB677AAAB69}.Debug|Any CPU.Build.0 = Debug|Any CPU
{976AE133-2456-4278-8F1F-5BB677AAAB69}.Release|Any CPU.ActiveCfg = Release|Any CPU
{976AE133-2456-4278-8F1F-5BB677AAAB69}.Release|Any CPU.Build.0 = Release|Any CPU
{3172BC5E-8822-41D4-861F-7B6E12CC9AD6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3172BC5E-8822-41D4-861F-7B6E12CC9AD6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3172BC5E-8822-41D4-861F-7B6E12CC9AD6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3172BC5E-8822-41D4-861F-7B6E12CC9AD6}.Release|Any CPU.Build.0 = Release|Any CPU
{BFAE9A46-1F63-4B33-B9AE-A027C7C14A0A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{BFAE9A46-1F63-4B33-B9AE-A027C7C14A0A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BFAE9A46-1F63-4B33-B9AE-A027C7C14A0A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BFAE9A46-1F63-4B33-B9AE-A027C7C14A0A}.Release|Any CPU.Build.0 = Release|Any CPU
{6DE3D942-6F09-4E61-8E80-FB88DBEC3A67}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6DE3D942-6F09-4E61-8E80-FB88DBEC3A67}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6DE3D942-6F09-4E61-8E80-FB88DBEC3A67}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6DE3D942-6F09-4E61-8E80-FB88DBEC3A67}.Release|Any CPU.Build.0 = Release|Any CPU
{510139D7-D45D-43B6-B983-1CC9599979B5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{510139D7-D45D-43B6-B983-1CC9599979B5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{510139D7-D45D-43B6-B983-1CC9599979B5}.Release|Any CPU.ActiveCfg = Release|Any CPU
{510139D7-D45D-43B6-B983-1CC9599979B5}.Release|Any CPU.Build.0 = Release|Any CPU
{5D768182-D3C7-439B-9BDB-47351BFD5FB0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5D768182-D3C7-439B-9BDB-47351BFD5FB0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5D768182-D3C7-439B-9BDB-47351BFD5FB0}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5D768182-D3C7-439B-9BDB-47351BFD5FB0}.Release|Any CPU.Build.0 = Release|Any CPU
{38CBC941-94FD-4773-9ADF-8C043F4BD9DE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{38CBC941-94FD-4773-9ADF-8C043F4BD9DE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{38CBC941-94FD-4773-9ADF-8C043F4BD9DE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{38CBC941-94FD-4773-9ADF-8C043F4BD9DE}.Release|Any CPU.Build.0 = Release|Any CPU
{2CF00ED1-577C-4260-86E5-E9A1CE0E937C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2CF00ED1-577C-4260-86E5-E9A1CE0E937C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2CF00ED1-577C-4260-86E5-E9A1CE0E937C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2CF00ED1-577C-4260-86E5-E9A1CE0E937C}.Release|Any CPU.Build.0 = Release|Any CPU
{99220D67-EF4A-4BC6-9682-198AE893F7F1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{99220D67-EF4A-4BC6-9682-198AE893F7F1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{99220D67-EF4A-4BC6-9682-198AE893F7F1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{99220D67-EF4A-4BC6-9682-198AE893F7F1}.Release|Any CPU.Build.0 = Release|Any CPU
{5204D205-19C8-41FE-838B-AB26C3B06452}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5204D205-19C8-41FE-838B-AB26C3B06452}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5204D205-19C8-41FE-838B-AB26C3B06452}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5204D205-19C8-41FE-838B-AB26C3B06452}.Release|Any CPU.Build.0 = Release|Any CPU
{50214B7F-0F36-4088-93C8-CF1AADAFEA7B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{50214B7F-0F36-4088-93C8-CF1AADAFEA7B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{50214B7F-0F36-4088-93C8-CF1AADAFEA7B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{50214B7F-0F36-4088-93C8-CF1AADAFEA7B}.Release|Any CPU.Build.0 = Release|Any CPU
{E534DED4-D584-46A6-8993-90F7C77F0416}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E534DED4-D584-46A6-8993-90F7C77F0416}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E534DED4-D584-46A6-8993-90F7C77F0416}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E534DED4-D584-46A6-8993-90F7C77F0416}.Release|Any CPU.Build.0 = Release|Any CPU
{A140DA49-14F0-4810-9425-D2D7226F4C3A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A140DA49-14F0-4810-9425-D2D7226F4C3A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A140DA49-14F0-4810-9425-D2D7226F4C3A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A140DA49-14F0-4810-9425-D2D7226F4C3A}.Release|Any CPU.Build.0 = Release|Any CPU
{5D0114BF-142C-45CC-B5B6-C6F48C3B4E8C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5D0114BF-142C-45CC-B5B6-C6F48C3B4E8C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5D0114BF-142C-45CC-B5B6-C6F48C3B4E8C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5D0114BF-142C-45CC-B5B6-C6F48C3B4E8C}.Release|Any CPU.Build.0 = Release|Any CPU
{4F9F4528-798E-4324-BF34-4C969599805E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4F9F4528-798E-4324-BF34-4C969599805E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4F9F4528-798E-4324-BF34-4C969599805E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4F9F4528-798E-4324-BF34-4C969599805E}.Release|Any CPU.Build.0 = Release|Any CPU
{FD06C296-2755-45D7-8D9D-F4DDCFCE1FEA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{FD06C296-2755-45D7-8D9D-F4DDCFCE1FEA}.Debug|Any CPU.Build.0 = Debug|Any CPU
{FD06C296-2755-45D7-8D9D-F4DDCFCE1FEA}.Release|Any CPU.ActiveCfg = Release|Any CPU
{FD06C296-2755-45D7-8D9D-F4DDCFCE1FEA}.Release|Any CPU.Build.0 = Release|Any CPU
{ADEAAE86-0827-4342-926E-26E9C381826B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{ADEAAE86-0827-4342-926E-26E9C381826B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{ADEAAE86-0827-4342-926E-26E9C381826B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{ADEAAE86-0827-4342-926E-26E9C381826B}.Release|Any CPU.Build.0 = Release|Any CPU
{FD4B3758-EF4B-4FC9-B87C-16A3256DB7A6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{FD4B3758-EF4B-4FC9-B87C-16A3256DB7A6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{FD4B3758-EF4B-4FC9-B87C-16A3256DB7A6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{FD4B3758-EF4B-4FC9-B87C-16A3256DB7A6}.Release|Any CPU.Build.0 = Release|Any CPU
{BDF95384-4DB4-491E-B042-5CF066E1F86B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{BDF95384-4DB4-491E-B042-5CF066E1F86B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BDF95384-4DB4-491E-B042-5CF066E1F86B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BDF95384-4DB4-491E-B042-5CF066E1F86B}.Release|Any CPU.Build.0 = Release|Any CPU
{CC524B92-FBCF-4379-85B4-608351BFC666}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{CC524B92-FBCF-4379-85B4-608351BFC666}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CC524B92-FBCF-4379-85B4-608351BFC666}.Release|Any CPU.ActiveCfg = Release|Any CPU
{CC524B92-FBCF-4379-85B4-608351BFC666}.Release|Any CPU.Build.0 = Release|Any CPU
{64A22A3C-D0C4-4DE9-A8D5-2CEF766EB500}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{64A22A3C-D0C4-4DE9-A8D5-2CEF766EB500}.Debug|Any CPU.Build.0 = Debug|Any CPU
{64A22A3C-D0C4-4DE9-A8D5-2CEF766EB500}.Release|Any CPU.ActiveCfg = Release|Any CPU
@ -224,10 +80,6 @@ Global
{B18937F6-B39F-46BB-BB3C-86C0693993EF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B18937F6-B39F-46BB-BB3C-86C0693993EF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B18937F6-B39F-46BB-BB3C-86C0693993EF}.Release|Any CPU.Build.0 = Release|Any CPU
{CDBD5665-D6CC-4C10-9872-A4886AC6275A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{CDBD5665-D6CC-4C10-9872-A4886AC6275A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CDBD5665-D6CC-4C10-9872-A4886AC6275A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{CDBD5665-D6CC-4C10-9872-A4886AC6275A}.Release|Any CPU.Build.0 = Release|Any CPU
{D405655F-C8BE-4134-893C-ADB4918B0624}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D405655F-C8BE-4134-893C-ADB4918B0624}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D405655F-C8BE-4134-893C-ADB4918B0624}.Release|Any CPU.ActiveCfg = Release|Any CPU
@ -240,10 +92,18 @@ Global
{BDE6F761-880E-47C3-B40C-956F470E3D10}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BDE6F761-880E-47C3-B40C-956F470E3D10}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BDE6F761-880E-47C3-B40C-956F470E3D10}.Release|Any CPU.Build.0 = Release|Any CPU
{F1438954-24F5-4D41-AFEA-46D9E1E74C72}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F1438954-24F5-4D41-AFEA-46D9E1E74C72}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F1438954-24F5-4D41-AFEA-46D9E1E74C72}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F1438954-24F5-4D41-AFEA-46D9E1E74C72}.Release|Any CPU.Build.0 = Release|Any CPU
{6ABA1666-BC42-487F-B156-3DC79347BD6B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6ABA1666-BC42-487F-B156-3DC79347BD6B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6ABA1666-BC42-487F-B156-3DC79347BD6B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6ABA1666-BC42-487F-B156-3DC79347BD6B}.Release|Any CPU.Build.0 = Release|Any CPU
{0FBF046E-7B17-410C-8219-8381D07726DF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0FBF046E-7B17-410C-8219-8381D07726DF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0FBF046E-7B17-410C-8219-8381D07726DF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0FBF046E-7B17-410C-8219-8381D07726DF}.Release|Any CPU.Build.0 = Release|Any CPU
{B7CF1C77-FE6F-4586-93FE-801671A5EAFD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B7CF1C77-FE6F-4586-93FE-801671A5EAFD}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B7CF1C77-FE6F-4586-93FE-801671A5EAFD}.Release|Any CPU.ActiveCfg = Release|Any CPU
@ -272,34 +132,6 @@ Global
{B6C398B2-6F74-4E50-A49F-F36B9825F45E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B6C398B2-6F74-4E50-A49F-F36B9825F45E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B6C398B2-6F74-4E50-A49F-F36B9825F45E}.Release|Any CPU.Build.0 = Release|Any CPU
{56E00DEF-F87C-4893-8902-2844DE1AEB8D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{56E00DEF-F87C-4893-8902-2844DE1AEB8D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{56E00DEF-F87C-4893-8902-2844DE1AEB8D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{56E00DEF-F87C-4893-8902-2844DE1AEB8D}.Release|Any CPU.Build.0 = Release|Any CPU
{6138EFEB-3C50-4A35-BDFA-7270A5F621BD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6138EFEB-3C50-4A35-BDFA-7270A5F621BD}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6138EFEB-3C50-4A35-BDFA-7270A5F621BD}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6138EFEB-3C50-4A35-BDFA-7270A5F621BD}.Release|Any CPU.Build.0 = Release|Any CPU
{01141225-BA2E-412F-89A3-97654C1A803E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{01141225-BA2E-412F-89A3-97654C1A803E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{01141225-BA2E-412F-89A3-97654C1A803E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{01141225-BA2E-412F-89A3-97654C1A803E}.Release|Any CPU.Build.0 = Release|Any CPU
{3A6BEE5E-FEE0-4759-84D3-B66C1F76416F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3A6BEE5E-FEE0-4759-84D3-B66C1F76416F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3A6BEE5E-FEE0-4759-84D3-B66C1F76416F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3A6BEE5E-FEE0-4759-84D3-B66C1F76416F}.Release|Any CPU.Build.0 = Release|Any CPU
{261B2F47-80E7-4E6E-A7AF-8418812DAF81}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{261B2F47-80E7-4E6E-A7AF-8418812DAF81}.Debug|Any CPU.Build.0 = Debug|Any CPU
{261B2F47-80E7-4E6E-A7AF-8418812DAF81}.Release|Any CPU.ActiveCfg = Release|Any CPU
{261B2F47-80E7-4E6E-A7AF-8418812DAF81}.Release|Any CPU.Build.0 = Release|Any CPU
{131506C3-DCEE-455A-A204-CC10B2678563}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{131506C3-DCEE-455A-A204-CC10B2678563}.Debug|Any CPU.Build.0 = Debug|Any CPU
{131506C3-DCEE-455A-A204-CC10B2678563}.Release|Any CPU.ActiveCfg = Release|Any CPU
{131506C3-DCEE-455A-A204-CC10B2678563}.Release|Any CPU.Build.0 = Release|Any CPU
{90F2EBC9-15E1-4305-8485-244CA8EFF8E1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{90F2EBC9-15E1-4305-8485-244CA8EFF8E1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{90F2EBC9-15E1-4305-8485-244CA8EFF8E1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{90F2EBC9-15E1-4305-8485-244CA8EFF8E1}.Release|Any CPU.Build.0 = Release|Any CPU
{AC89B7CF-0FA5-49EE-97A8-AB39A5F211A8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{AC89B7CF-0FA5-49EE-97A8-AB39A5F211A8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{AC89B7CF-0FA5-49EE-97A8-AB39A5F211A8}.Release|Any CPU.ActiveCfg = Release|Any CPU
@ -308,14 +140,6 @@ Global
{AEF35BD6-EA9A-4159-86F4-49AF7D17A9A8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{AEF35BD6-EA9A-4159-86F4-49AF7D17A9A8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{AEF35BD6-EA9A-4159-86F4-49AF7D17A9A8}.Release|Any CPU.Build.0 = Release|Any CPU
{134C4854-1A8E-4093-9526-32D308CDC7BC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{134C4854-1A8E-4093-9526-32D308CDC7BC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{134C4854-1A8E-4093-9526-32D308CDC7BC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{134C4854-1A8E-4093-9526-32D308CDC7BC}.Release|Any CPU.Build.0 = Release|Any CPU
{6735CCE7-5142-490B-9A06-C7471604E93B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6735CCE7-5142-490B-9A06-C7471604E93B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6735CCE7-5142-490B-9A06-C7471604E93B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6735CCE7-5142-490B-9A06-C7471604E93B}.Release|Any CPU.Build.0 = Release|Any CPU
{1D1A5ED5-A1A1-4082-ACAF-30079AF31AC6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1D1A5ED5-A1A1-4082-ACAF-30079AF31AC6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1D1A5ED5-A1A1-4082-ACAF-30079AF31AC6}.Release|Any CPU.ActiveCfg = Release|Any CPU
@ -332,45 +156,21 @@ Global
{65AED6F0-D27E-4D6E-BA42-AD6EE1338082}.Debug|Any CPU.Build.0 = Debug|Any CPU
{65AED6F0-D27E-4D6E-BA42-AD6EE1338082}.Release|Any CPU.ActiveCfg = Release|Any CPU
{65AED6F0-D27E-4D6E-BA42-AD6EE1338082}.Release|Any CPU.Build.0 = Release|Any CPU
{F1438954-24F5-4D41-AFEA-46D9E1E74C72}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F1438954-24F5-4D41-AFEA-46D9E1E74C72}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F1438954-24F5-4D41-AFEA-46D9E1E74C72}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F1438954-24F5-4D41-AFEA-46D9E1E74C72}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{B409837F-3D64-407E-88AE-C0F932F1A4DE} = {810145E0-41CF-4E24-BD9C-E7517498BA29}
{B9ADD076-3567-4795-910B-3A6993EF7D84} = {810145E0-41CF-4E24-BD9C-E7517498BA29}
{976AE133-2456-4278-8F1F-5BB677AAAB69} = {810145E0-41CF-4E24-BD9C-E7517498BA29}
{3172BC5E-8822-41D4-861F-7B6E12CC9AD6} = {810145E0-41CF-4E24-BD9C-E7517498BA29}
{BFAE9A46-1F63-4B33-B9AE-A027C7C14A0A} = {810145E0-41CF-4E24-BD9C-E7517498BA29}
{6DE3D942-6F09-4E61-8E80-FB88DBEC3A67} = {810145E0-41CF-4E24-BD9C-E7517498BA29}
{510139D7-D45D-43B6-B983-1CC9599979B5} = {810145E0-41CF-4E24-BD9C-E7517498BA29}
{5D768182-D3C7-439B-9BDB-47351BFD5FB0} = {810145E0-41CF-4E24-BD9C-E7517498BA29}
{38CBC941-94FD-4773-9ADF-8C043F4BD9DE} = {810145E0-41CF-4E24-BD9C-E7517498BA29}
{2CF00ED1-577C-4260-86E5-E9A1CE0E937C} = {810145E0-41CF-4E24-BD9C-E7517498BA29}
{99220D67-EF4A-4BC6-9682-198AE893F7F1} = {810145E0-41CF-4E24-BD9C-E7517498BA29}
{5204D205-19C8-41FE-838B-AB26C3B06452} = {810145E0-41CF-4E24-BD9C-E7517498BA29}
{50214B7F-0F36-4088-93C8-CF1AADAFEA7B} = {810145E0-41CF-4E24-BD9C-E7517498BA29}
{E534DED4-D584-46A6-8993-90F7C77F0416} = {810145E0-41CF-4E24-BD9C-E7517498BA29}
{A140DA49-14F0-4810-9425-D2D7226F4C3A} = {810145E0-41CF-4E24-BD9C-E7517498BA29}
{5D0114BF-142C-45CC-B5B6-C6F48C3B4E8C} = {810145E0-41CF-4E24-BD9C-E7517498BA29}
{4F9F4528-798E-4324-BF34-4C969599805E} = {810145E0-41CF-4E24-BD9C-E7517498BA29}
{FD06C296-2755-45D7-8D9D-F4DDCFCE1FEA} = {810145E0-41CF-4E24-BD9C-E7517498BA29}
{ADEAAE86-0827-4342-926E-26E9C381826B} = {810145E0-41CF-4E24-BD9C-E7517498BA29}
{FD4B3758-EF4B-4FC9-B87C-16A3256DB7A6} = {810145E0-41CF-4E24-BD9C-E7517498BA29}
{BDF95384-4DB4-491E-B042-5CF066E1F86B} = {810145E0-41CF-4E24-BD9C-E7517498BA29}
{CC524B92-FBCF-4379-85B4-608351BFC666} = {810145E0-41CF-4E24-BD9C-E7517498BA29}
{64A22A3C-D0C4-4DE9-A8D5-2CEF766EB500} = {810145E0-41CF-4E24-BD9C-E7517498BA29}
{B18937F6-B39F-46BB-BB3C-86C0693993EF} = {810145E0-41CF-4E24-BD9C-E7517498BA29}
{CDBD5665-D6CC-4C10-9872-A4886AC6275A} = {810145E0-41CF-4E24-BD9C-E7517498BA29}
{D405655F-C8BE-4134-893C-ADB4918B0624} = {810145E0-41CF-4E24-BD9C-E7517498BA29}
{7AD094AA-01D6-4644-B9B6-E555A029D6D7} = {810145E0-41CF-4E24-BD9C-E7517498BA29}
{66D8DEA8-B477-497F-95BB-E8F9A5BAC352} = {810145E0-41CF-4E24-BD9C-E7517498BA29}
{BDE6F761-880E-47C3-B40C-956F470E3D10} = {66D8DEA8-B477-497F-95BB-E8F9A5BAC352}
{F1438954-24F5-4D41-AFEA-46D9E1E74C72} = {66D8DEA8-B477-497F-95BB-E8F9A5BAC352}
{6ABA1666-BC42-487F-B156-3DC79347BD6B} = {66D8DEA8-B477-497F-95BB-E8F9A5BAC352}
{0FBF046E-7B17-410C-8219-8381D07726DF} = {66D8DEA8-B477-497F-95BB-E8F9A5BAC352}
{B7CF1C77-FE6F-4586-93FE-801671A5EAFD} = {66D8DEA8-B477-497F-95BB-E8F9A5BAC352}
{98223494-E0A8-4C07-A38F-84CA2060031D} = {66D8DEA8-B477-497F-95BB-E8F9A5BAC352}
{848EDB8F-9C45-462B-A544-EA237774F3BA} = {66D8DEA8-B477-497F-95BB-E8F9A5BAC352}
@ -378,22 +178,12 @@ Global
{C2996131-C3CA-4D3D-8357-C533849792E1} = {66D8DEA8-B477-497F-95BB-E8F9A5BAC352}
{8460A7F9-FED4-4495-A595-8C585FC7F606} = {66D8DEA8-B477-497F-95BB-E8F9A5BAC352}
{B6C398B2-6F74-4E50-A49F-F36B9825F45E} = {8B62E3FB-9062-4716-803A-1FA51FCE68BC}
{56E00DEF-F87C-4893-8902-2844DE1AEB8D} = {8B62E3FB-9062-4716-803A-1FA51FCE68BC}
{6138EFEB-3C50-4A35-BDFA-7270A5F621BD} = {8B62E3FB-9062-4716-803A-1FA51FCE68BC}
{01141225-BA2E-412F-89A3-97654C1A803E} = {8B62E3FB-9062-4716-803A-1FA51FCE68BC}
{3A6BEE5E-FEE0-4759-84D3-B66C1F76416F} = {8B62E3FB-9062-4716-803A-1FA51FCE68BC}
{261B2F47-80E7-4E6E-A7AF-8418812DAF81} = {8B62E3FB-9062-4716-803A-1FA51FCE68BC}
{131506C3-DCEE-455A-A204-CC10B2678563} = {8B62E3FB-9062-4716-803A-1FA51FCE68BC}
{90F2EBC9-15E1-4305-8485-244CA8EFF8E1} = {8B62E3FB-9062-4716-803A-1FA51FCE68BC}
{AC89B7CF-0FA5-49EE-97A8-AB39A5F211A8} = {8B62E3FB-9062-4716-803A-1FA51FCE68BC}
{AEF35BD6-EA9A-4159-86F4-49AF7D17A9A8} = {8B62E3FB-9062-4716-803A-1FA51FCE68BC}
{134C4854-1A8E-4093-9526-32D308CDC7BC} = {8B62E3FB-9062-4716-803A-1FA51FCE68BC}
{6735CCE7-5142-490B-9A06-C7471604E93B} = {8B62E3FB-9062-4716-803A-1FA51FCE68BC}
{1D1A5ED5-A1A1-4082-ACAF-30079AF31AC6} = {8B62E3FB-9062-4716-803A-1FA51FCE68BC}
{968CD847-80D0-4740-92D5-F5553461EC04} = {8B62E3FB-9062-4716-803A-1FA51FCE68BC}
{D787694D-B87B-4E11-9455-B5BF9306D8FC} = {8B62E3FB-9062-4716-803A-1FA51FCE68BC}
{65AED6F0-D27E-4D6E-BA42-AD6EE1338082} = {8B62E3FB-9062-4716-803A-1FA51FCE68BC}
{F1438954-24F5-4D41-AFEA-46D9E1E74C72} = {66D8DEA8-B477-497F-95BB-E8F9A5BAC352}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {70FEC644-BB3C-4441-AF91-DC694803C8F2}

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

@ -1,11 +1,10 @@
<Project>
<PropertyGroup>
<Product>Azure Functions OpenAPI Extension</Product>
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
<PackageProjectUrl>https://github.com/Azure/azure-functions-openapi-extension</PackageProjectUrl>
<RepositoryUrl>https://github.com/Azure/azure-functions-openapi-extension</RepositoryUrl>
<PackageIconUrl>http://go.microsoft.com/fwlink/?LinkID=288890</PackageIconUrl>
<PackageIcon>icon.png</PackageIcon>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<RepositoryType>git</RepositoryType>
@ -14,8 +13,4 @@
<Company>Microsoft</Company>
</PropertyGroup>
<ItemGroup>
<None Include="..\..\images\icon.png" Pack="true" PackagePath="\"/>
</ItemGroup>
</Project>

14
builds/webjobs.props Normal file
Просмотреть файл

@ -0,0 +1,14 @@
<Project>
<Import Project=".\common.props" />
<PropertyGroup>
<PackageIconUrl>http://go.microsoft.com/fwlink/?LinkID=288890</PackageIconUrl>
<PackageIcon>icon.png</PackageIcon>
</PropertyGroup>
<ItemGroup>
<None Include="..\..\images\webjobs\icon.png" Pack="true" PackagePath="\"/>
</ItemGroup>
</Project>

14
builds/worker.props Normal file
Просмотреть файл

@ -0,0 +1,14 @@
<Project>
<Import Project=".\common.props" />
<PropertyGroup>
<PackageIconUrl>https://aka.ms/azure-functions-package-icon</PackageIconUrl>
<PackageIcon>icon.png</PackageIcon>
</PropertyGroup>
<ItemGroup>
<None Include="..\..\images\worker\icon.png" Pack="true" PackagePath="\"/>
</ItemGroup>
</Project>

Двоичные данные
images/webjobs/icon.png Normal file

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 832 B

Двоичные данные
images/worker/icon.png Normal file

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 4.1 KiB

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

@ -10,20 +10,12 @@
<!-- Uncomment this block if you want to use NuGet package from https://nuget.org -->
<!-- <ItemGroup>
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.OpenApi" Version="0.8.0-preview" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OAuth2Redirect.Anonymous" Version="0.8.0-preview" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OpenApiDocument.Anonymous" Version="0.8.0-preview" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerDocument.Anonymous" Version="0.8.0-preview" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.OpenApi" Version="1.0.0" />
</ItemGroup> -->
<!-- Uncomment this block if you want to use NuGet package from https://nuget.org -->
<!-- Uncomment this block if you want to use Swagger UI NuGet package from https://nuget.org -->
<!-- <ItemGroup>
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerUI.Anonymous" Version="0.8.0-preview" />
</ItemGroup> -->
<!-- Uncomment this block if you want to use Swagger UI NuGet package from https://nuget.org -->
<ItemGroup>
<PackageReference Include="Microsoft.Azure.Core.NewtonsoftJson" Version="1.0.0" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Http" Version="3.0.12" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Sdk" Version="1.0.3" OutputItemType="Analyzer" />
<PackageReference Include="Microsoft.Azure.Functions.Worker" Version="1.1.0" />
@ -32,20 +24,11 @@
<!-- Comment this block if you want to use NuGet package from https://nuget.org -->
<ItemGroup>
<ProjectReference Include="..\..\src\Microsoft.Azure.Functions.Worker.Extensions.OpenApi\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.csproj" />
<ProjectReference Include="..\..\src\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OAuth2Redirect.Anonymous\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OAuth2Redirect.Anonymous.csproj" />
<ProjectReference Include="..\..\src\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OpenApiDocument.Anonymous\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OpenApiDocument.Anonymous.csproj" />
<ProjectReference Include="..\..\src\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerDocument.Anonymous\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerDocument.Anonymous.csproj" />
</ItemGroup>
<!-- Comment this block if you want to use NuGet package from https://nuget.org -->
<!-- Comment this block if you want to use Swagger UI NuGet package from https://nuget.org -->
<ItemGroup>
<ProjectReference Include="..\..\src\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerUI.Anonymous\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerUI.Anonymous.csproj" />
</ItemGroup>
<!-- Comment this block if you want to use Swagger UI NuGet package from https://nuget.org -->
<ItemGroup>
<ProjectReference Include="..\Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.Models\Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.Models.csproj" />
<ProjectReference Include="..\Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.Models.PetStore\Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.Models.PetStore.csproj" />
</ItemGroup>
<ItemGroup>

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

@ -6,7 +6,7 @@ using Microsoft.Azure.Functions.Worker.Extensions.OpenApi.FunctionApp.V3Net5.Sec
using Microsoft.Azure.Functions.Worker.Http;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Attributes;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Enums;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.Models;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.Models.PetStore;
using Microsoft.OpenApi.Models;
namespace Microsoft.Azure.Functions.Worker.Extensions.OpenApi.FunctionApp.V3Net5

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

@ -1,4 +1,4 @@
namespace Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.Models
namespace Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.Models.PetStore
{
/// <summary>
/// This represents the model entity for API response of Swagger Pet Store.

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

@ -1,12 +1,8 @@
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Attributes;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.Models.Examples;
namespace Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.Models
namespace Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.Models.PetStore
{
/// <summary>
/// This represents the model entity for category of Swagger Pet Store.
/// </summary>
[OpenApiExample(typeof(CategoryExample))]
public class Category
{
/// <summary>

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

@ -0,0 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>netstandard2.0</TargetFrameworks>
<AssemblyName>Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.Models.PetStore</AssemblyName>
<RootNamespace>Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.Models.PetStore</RootNamespace>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="11.0.2" />
</ItemGroup>
</Project>

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

@ -1,8 +1,6 @@
using System;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Attributes;
namespace Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.Models
namespace Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.Models.PetStore
{
/// <summary>
/// This represents the model entity for order of Swagger Pet Store.
@ -32,13 +30,11 @@ namespace Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.Models
/// <summary>
/// Gets or sets the <see cref="OrderStatus"/> value.
/// </summary>
[OpenApiProperty(Description = "Order Status")]
public OrderStatus? Status { get; set; }
/// <summary>
/// Gets or sets the value indicating whether the order is complete or not.
/// </summary>
[OpenApiProperty(Default = false)]
public bool? Complete { get; set; }
}
}

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

@ -1,9 +1,9 @@
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Attributes;
using System.Runtime.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.Models
namespace Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.Models.PetStore
{
/// <summary>
/// This specifies the order status.
@ -14,19 +14,19 @@ namespace Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.Models
/// <summary>
/// Identifies as "placed".
/// </summary>
[Display("placed")]
[EnumMember(Value = "placed")]
Placed = 1,
/// <summary>
/// Identifies as "approved".
/// </summary>
[Display("approved")]
[EnumMember(Value = "approved")]
Approved = 2,
/// <summary>
/// Identifies as "delivered".
/// </summary>
[Display("delivered")]
[EnumMember(Value = "delivered")]
Delivered = 3
}
}

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

@ -1,10 +1,8 @@
using System.Collections.Generic;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Attributes;
using Newtonsoft.Json;
namespace Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.Models
namespace Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.Models.PetStore
{
/// <summary>
/// This represents the model entity for pet of Swagger Pet Store.
@ -41,7 +39,6 @@ namespace Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.Models
/// <summary>
/// Gets or sets the <see cref="PetStatus"/> value.
/// </summary>
[OpenApiProperty(Description = "pet status in the store")]
public PetStatus? Status { get; set; }
}
}

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

@ -1,9 +1,9 @@
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Attributes;
using System.Runtime.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.Models
namespace Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.Models.PetStore
{
/// <summary>
/// This specifices the pet status.
@ -14,19 +14,19 @@ namespace Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.Models
/// <summary>
/// Identifies as "available".
/// </summary>
[Display("available")]
[EnumMember(Value = "available")]
Available = 1,
/// <summary>
/// Identifies as "pending".
/// </summary>
[Display("pending")]
[EnumMember(Value = "pending")]
Pending = 2,
/// <summary>
/// Identifies as "sold".
/// </summary>
[Display("sold")]
[EnumMember(Value = "sold")]
Sold = 3
}
}

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

@ -1,4 +1,4 @@
namespace Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.Models
namespace Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.Models.PetStore
{
/// <summary>
/// This represents the model entity for tag of Swagger Pet Store.

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

@ -1,6 +1,4 @@
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Attributes;
namespace Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.Models
namespace Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.Models.PetStore
{
/// <summary>
/// This represents the model entity for user of Swagger Pet Store.
@ -45,7 +43,6 @@ namespace Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.Models
/// <summary>
/// Gets or sets the user status value.
/// </summary>
[OpenApiProperty(Description = "User Status")]
public int? UserStatus { get; set; }
}
}

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

@ -1,5 +1,6 @@
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Abstractions;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Resolvers;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.Models.PetStore;
using Newtonsoft.Json.Serialization;

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

@ -14,6 +14,7 @@
<!-- Comment this block if you want to use NuGet package from https://nuget.org -->
<ItemGroup>
<ProjectReference Include="..\Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.Models.PetStore\Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.Models.PetStore.csproj" />
<ProjectReference Include="..\..\src\Microsoft.Azure.WebJobs.Extensions.OpenApi.Core\Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.csproj" />
</ItemGroup>
<!-- Comment this block if you want to use NuGet package from https://nuget.org -->

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

@ -7,7 +7,7 @@ using Microsoft.AspNetCore.Mvc;
using Microsoft.Azure.WebJobs.Extensions.Http;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Attributes;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Enums;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.Models;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.Models.PetStore;
using Microsoft.Extensions.Logging;
using Microsoft.OpenApi.Models;

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

@ -8,7 +8,7 @@ using Microsoft.AspNetCore.Mvc;
using Microsoft.Azure.WebJobs.Extensions.Http;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Attributes;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Enums;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.Models;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.Models.PetStore;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.Services;
using Microsoft.Extensions.Logging;
using Microsoft.OpenApi.Models;

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

@ -7,7 +7,7 @@ using Microsoft.AspNetCore.Mvc;
using Microsoft.Azure.WebJobs.Extensions.Http;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Attributes;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Enums;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.Models;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.Models.PetStore;
using Microsoft.Extensions.Logging;
using Microsoft.OpenApi.Models;

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

@ -8,7 +8,7 @@ using Microsoft.AspNetCore.Mvc;
using Microsoft.Azure.WebJobs.Extensions.Http;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Attributes;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Enums;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.Models;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.Models.PetStore;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.Services;
using Microsoft.Extensions.Logging;
using Microsoft.OpenApi.Models;

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

@ -7,7 +7,7 @@ using Microsoft.AspNetCore.Mvc;
using Microsoft.Azure.WebJobs.Extensions.Http;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Attributes;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Enums;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.Models;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.Models.PetStore;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.V3Static.SecurityFlows;
using Microsoft.Extensions.Logging;
using Microsoft.OpenApi.Models;

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

@ -1,36 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\..\builds\common.props" />
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<IsPackable>true</IsPackable>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<Version>1.0.0</Version>
<PackageId>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.Core.Extensions</PackageId>
<Title>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.Core.Extensions</Title>
<Summary>This package extends Microsoft.Azure.WebJobs.Extensions.OpenApi.Core through the out-of-process worker.</Summary>
<Description>This package extends Microsoft.Azure.WebJobs.Extensions.OpenApi.Core through the out-of-process worker.</Description>
<PackageTags>Azure-Functions, OpenAPI, Swagger, Swagger-UI</PackageTags>
<AssemblyName>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.Core.Extensions</AssemblyName>
<RootNamespace>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.Core.Extensions</RootNamespace>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
<DocumentationFile>bin\Debug\netstandard2.0\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.Core.Extensions.xml</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Release'">
<DocumentationFile>bin\Release\netstandard2.0\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.Core.Extensions.xml</DocumentationFile>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Http" Version="3.0.12" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Microsoft.Azure.WebJobs.Extensions.OpenApi.Core\Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.csproj" />
</ItemGroup>
</Project>

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

@ -1,47 +0,0 @@
using System.Threading.Tasks;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Abstractions;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Enums;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Extensions;
namespace Microsoft.Azure.Functions.Worker.Extensions.OpenApi.Core.Extensions
{
/// <summary>
/// This represents the extension entity for <see cref="SwaggerUI"/>.
/// </summary>
public static class SwaggerUIExtensions
{
/// <summary>
/// Renders the OpenAPI UI in HTML.
/// </summary>
/// <param name="ui"><see cref="ISwaggerUI"/> instance.</param>
/// <param name="endpoint">The endpoint of the Swagger document.</param>
/// <param name="authLevel">The authorisation level of the Swagger document.</param>
/// <param name="authKey">API key of the HTTP endpoint to render OpenAPI document.</param>
/// <returns>The OpenAPI UI in HTML.</returns>
public static async Task<string> RenderAsync(this Task<ISwaggerUI> ui, string endpoint, OpenApiAuthLevelType authLevel = OpenApiAuthLevelType.Anonymous, string authKey = null)
{
var instance = await ui.ThrowIfNullOrDefault().ConfigureAwait(false);
endpoint.ThrowIfNullOrWhiteSpace();
return await instance.RenderAsync(endpoint, authLevel, authKey).ConfigureAwait(false);
}
/// <summary>
/// Renders the OAuth2 Redirect page in HTML.
/// </summary>
/// <param name="ui"><see cref="ISwaggerUI"/> instance.</param>
/// <param name="endpoint">The endpoint of the OAuth2 Redirect page.</param>
/// <param name="authLevel">The authorisation level of the Swagger document.</param>
/// <param name="authKey">API key of the HTTP endpoint to render OpenAPI document.</param>
/// <returns>The OAuth2 Redirect page in HTML.</returns>
public static async Task<string> RenderOAuth2RedirectAsync(this Task<ISwaggerUI> ui, string endpoint, OpenApiAuthLevelType authLevel = OpenApiAuthLevelType.Anonymous, string authKey = null)
{
var instance = await ui.ThrowIfNullOrDefault().ConfigureAwait(false);
endpoint.ThrowIfNullOrWhiteSpace();
return await instance.RenderOAuth2RedirectAsync(endpoint, authLevel, authKey).ConfigureAwait(false);
}
}
}

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

@ -1,32 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\..\builds\common.props" />
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<IsPackable>true</IsPackable>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<Version>1.0.0</Version>
<PackageId>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OAuth2Redirect.Admin</PackageId>
<Title>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OAuth2Redirect.Admin</Title>
<Summary>This package helps render the oauth2-redirect page endpoint through the out-of-process worker.</Summary>
<Description>This package helps render the oauth2-redirect page endpoint through the out-of-process worker.</Description>
<PackageTags>Azure-Functions, OpenAPI, Swagger, Swagger-UI</PackageTags>
<AssemblyName>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OAuth2Redirect.Admin</AssemblyName>
<RootNamespace>Microsoft.Azure.Functions.Worker.Extensions.OpenApi</RootNamespace>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
<DocumentationFile>bin\Debug\net5.0\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OAuth2Redirect.Admin.xml</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Release'">
<DocumentationFile>bin\Release\net5.0\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OAuth2Redirect.Admin.xml</DocumentationFile>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Microsoft.Azure.Functions.Worker.Extensions.OpenApi\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.csproj" />
</ItemGroup>
</Project>

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

@ -1,35 +0,0 @@
using System.Threading.Tasks;
using Microsoft.Azure.Functions.Worker.Http;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Attributes;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Extensions;
namespace Microsoft.Azure.Functions.Worker.Extensions.OpenApi.FunctionProviders
{
/// <summary>
/// This represents the function provider entity for OpenAPI HTTP trigger that renders the oauth2-redirect.html page with the <see cref="AuthorizationLevel.Admin"/> access level.
/// </summary>
public class OpenApiTriggerRenderOAuth2RedirectFunctionProvider : IOpenApiTriggerRenderOAuth2RedirectFunctionProvider
{
private readonly IOpenApiTriggerFunction _function;
/// <summary>
/// Initializes a new instance of the <see cref="OpenApiTriggerRenderOAuth2RedirectFunctionProvider"/> class.
/// </summary>
/// <param name="function"><see cref="IOpenApiTriggerFunction"/> instance.</param>
public OpenApiTriggerRenderOAuth2RedirectFunctionProvider(IOpenApiTriggerFunction function)
{
this._function = function.ThrowIfNullOrDefault();
}
/// <inheritdoc/>
[OpenApiIgnore]
[Function(nameof(OpenApiTriggerRenderOAuth2RedirectFunctionProvider.RenderOAuth2Redirect))]
public async Task<HttpResponseData> RenderOAuth2Redirect(
[HttpTrigger(AuthorizationLevel.Admin, "GET", Route = "oauth2-redirect.html")] HttpRequestData req,
FunctionContext ctx)
{
return await this._function.RenderOAuth2Redirect(req, ctx).ConfigureAwait(false);
}
}
}

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

@ -1,32 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\..\builds\common.props" />
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<IsPackable>true</IsPackable>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<Version>1.0.0</Version>
<PackageId>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OAuth2Redirect.Anonymous</PackageId>
<Title>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OAuth2Redirect.Anonymous</Title>
<Summary>This package helps render the oauth2-redirect page endpoint through the out-of-process worker.</Summary>
<Description>This package helps render the oauth2-redirect page endpoint through the out-of-process worker.</Description>
<PackageTags>Azure-Functions, OpenAPI, Swagger, Swagger-UI</PackageTags>
<AssemblyName>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OAuth2Redirect.Anonymous</AssemblyName>
<RootNamespace>Microsoft.Azure.Functions.Worker.Extensions.OpenApi</RootNamespace>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
<DocumentationFile>bin\Debug\net5.0\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OAuth2Redirect.Anonymous.xml</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Release'">
<DocumentationFile>bin\Release\net5.0\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OAuth2Redirect.Anonymous.xml</DocumentationFile>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Microsoft.Azure.Functions.Worker.Extensions.OpenApi\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.csproj" />
</ItemGroup>
</Project>

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

@ -1,35 +0,0 @@
using System.Threading.Tasks;
using Microsoft.Azure.Functions.Worker.Http;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Attributes;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Extensions;
namespace Microsoft.Azure.Functions.Worker.Extensions.OpenApi.FunctionProviders
{
/// <summary>
/// This represents the function provider entity for OpenAPI HTTP trigger that renders the oauth2-redirect.html page with the <see cref="AuthorizationLevel.Anonymous"/> access level.
/// </summary>
public class OpenApiTriggerRenderOAuth2RedirectFunctionProvider : IOpenApiTriggerRenderOAuth2RedirectFunctionProvider
{
private readonly IOpenApiTriggerFunction _function;
/// <summary>
/// Initializes a new instance of the <see cref="OpenApiTriggerRenderOAuth2RedirectFunctionProvider"/> class.
/// </summary>
/// <param name="function"><see cref="IOpenApiTriggerFunction"/> instance.</param>
public OpenApiTriggerRenderOAuth2RedirectFunctionProvider(IOpenApiTriggerFunction function)
{
this._function = function.ThrowIfNullOrDefault();
}
/// <inheritdoc/>
[OpenApiIgnore]
[Function(nameof(OpenApiTriggerRenderOAuth2RedirectFunctionProvider.RenderOAuth2Redirect))]
public async Task<HttpResponseData> RenderOAuth2Redirect(
[HttpTrigger(AuthorizationLevel.Anonymous, "GET", Route = "oauth2-redirect.html")] HttpRequestData req,
FunctionContext ctx)
{
return await this._function.RenderOAuth2Redirect(req, ctx).ConfigureAwait(false);
}
}
}

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

@ -1,32 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\..\builds\common.props" />
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<IsPackable>true</IsPackable>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<Version>1.0.0</Version>
<PackageId>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OAuth2Redirect.Function</PackageId>
<Title>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OAuth2Redirect.Function</Title>
<Summary>This package helps render the oauth2-redirect page endpoint through the out-of-process worker.</Summary>
<Description>This package helps render the oauth2-redirect page endpoint through the out-of-process worker.</Description>
<PackageTags>Azure-Functions, OpenAPI, Swagger, Swagger-UI</PackageTags>
<AssemblyName>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OAuth2Redirect.Function</AssemblyName>
<RootNamespace>Microsoft.Azure.Functions.Worker.Extensions.OpenApi</RootNamespace>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
<DocumentationFile>bin\Debug\net5.0\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OAuth2Redirect.Function.xml</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Release'">
<DocumentationFile>bin\Release\net5.0\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OAuth2Redirect.Function.xml</DocumentationFile>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Microsoft.Azure.Functions.Worker.Extensions.OpenApi\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.csproj" />
</ItemGroup>
</Project>

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

@ -1,35 +0,0 @@
using System.Threading.Tasks;
using Microsoft.Azure.Functions.Worker.Http;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Attributes;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Extensions;
namespace Microsoft.Azure.Functions.Worker.Extensions.OpenApi.FunctionProviders
{
/// <summary>
/// This represents the function provider entity for OpenAPI HTTP trigger that renders the oauth2-redirect.html page with the <see cref="AuthorizationLevel.Function"/> access level.
/// </summary>
public class OpenApiTriggerRenderOAuth2RedirectFunctionProvider : IOpenApiTriggerRenderOAuth2RedirectFunctionProvider
{
private readonly IOpenApiTriggerFunction _function;
/// <summary>
/// Initializes a new instance of the <see cref="OpenApiTriggerRenderOAuth2RedirectFunctionProvider"/> class.
/// </summary>
/// <param name="function"><see cref="IOpenApiTriggerFunction"/> instance.</param>
public OpenApiTriggerRenderOAuth2RedirectFunctionProvider(IOpenApiTriggerFunction function)
{
this._function = function.ThrowIfNullOrDefault();
}
/// <inheritdoc/>
[OpenApiIgnore]
[Function(nameof(OpenApiTriggerRenderOAuth2RedirectFunctionProvider.RenderOAuth2Redirect))]
public async Task<HttpResponseData> RenderOAuth2Redirect(
[HttpTrigger(AuthorizationLevel.Function, "GET", Route = "oauth2-redirect.html")] HttpRequestData req,
FunctionContext ctx)
{
return await this._function.RenderOAuth2Redirect(req, ctx).ConfigureAwait(false);
}
}
}

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

@ -1,32 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\..\builds\common.props" />
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<IsPackable>true</IsPackable>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<Version>1.0.0</Version>
<PackageId>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OAuth2Redirect.System</PackageId>
<Title>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OAuth2Redirect.System</Title>
<Summary>This package helps render the oauth2-redirect page endpoint through the out-of-process worker.</Summary>
<Description>This package helps render the oauth2-redirect page endpoint through the out-of-process worker.</Description>
<PackageTags>Azure-Functions, OpenAPI, Swagger, Swagger-UI</PackageTags>
<AssemblyName>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OAuth2Redirect.System</AssemblyName>
<RootNamespace>Microsoft.Azure.Functions.Worker.Extensions.OpenApi</RootNamespace>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
<DocumentationFile>bin\Debug\net5.0\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OAuth2Redirect.System.xml</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Release'">
<DocumentationFile>bin\Release\net5.0\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OAuth2Redirect.System.xml</DocumentationFile>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Microsoft.Azure.Functions.Worker.Extensions.OpenApi\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.csproj" />
</ItemGroup>
</Project>

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

@ -1,35 +0,0 @@
using System.Threading.Tasks;
using Microsoft.Azure.Functions.Worker.Http;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Attributes;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Extensions;
namespace Microsoft.Azure.Functions.Worker.Extensions.OpenApi.FunctionProviders
{
/// <summary>
/// This represents the function provider entity for OpenAPI HTTP trigger that renders the oauth2-redirect.html page with the <see cref="AuthorizationLevel.System"/> access level.
/// </summary>
public class OpenApiTriggerRenderOAuth2RedirectFunctionProvider : IOpenApiTriggerRenderOAuth2RedirectFunctionProvider
{
private readonly IOpenApiTriggerFunction _function;
/// <summary>
/// Initializes a new instance of the <see cref="OpenApiTriggerRenderOAuth2RedirectFunctionProvider"/> class.
/// </summary>
/// <param name="function"><see cref="IOpenApiTriggerFunction"/> instance.</param>
public OpenApiTriggerRenderOAuth2RedirectFunctionProvider(IOpenApiTriggerFunction function)
{
this._function = function.ThrowIfNullOrDefault();
}
/// <inheritdoc/>
[OpenApiIgnore]
[Function(nameof(OpenApiTriggerRenderOAuth2RedirectFunctionProvider.RenderOAuth2Redirect))]
public async Task<HttpResponseData> RenderOAuth2Redirect(
[HttpTrigger(AuthorizationLevel.System, "GET", Route = "oauth2-redirect.html")] HttpRequestData req,
FunctionContext ctx)
{
return await this._function.RenderOAuth2Redirect(req, ctx).ConfigureAwait(false);
}
}
}

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

@ -1,32 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\..\builds\common.props" />
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<IsPackable>true</IsPackable>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<Version>1.0.0</Version>
<PackageId>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OAuth2Redirect.User</PackageId>
<Title>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OAuth2Redirect.User</Title>
<Summary>This package helps render the oauth2-redirect page endpoint through the out-of-process worker.</Summary>
<Description>This package helps render the oauth2-redirect page endpoint through the out-of-process worker.</Description>
<PackageTags>Azure-Functions, OpenAPI, Swagger, Swagger-UI</PackageTags>
<AssemblyName>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OAuth2Redirect.User</AssemblyName>
<RootNamespace>Microsoft.Azure.Functions.Worker.Extensions.OpenApi</RootNamespace>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
<DocumentationFile>bin\Debug\net5.0\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OAuth2Redirect.User.xml</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Release'">
<DocumentationFile>bin\Release\net5.0\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OAuth2Redirect.User.xml</DocumentationFile>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Microsoft.Azure.Functions.Worker.Extensions.OpenApi\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.csproj" />
</ItemGroup>
</Project>

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

@ -1,35 +0,0 @@
using System.Threading.Tasks;
using Microsoft.Azure.Functions.Worker.Http;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Attributes;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Extensions;
namespace Microsoft.Azure.Functions.Worker.Extensions.OpenApi.FunctionProviders
{
/// <summary>
/// This represents the function provider entity for OpenAPI HTTP trigger that renders the oauth2-redirect.html page with the <see cref="AuthorizationLevel.User"/> access level.
/// </summary>
public class OpenApiTriggerRenderOAuth2RedirectFunctionProvider : IOpenApiTriggerRenderOAuth2RedirectFunctionProvider
{
private readonly IOpenApiTriggerFunction _function;
/// <summary>
/// Initializes a new instance of the <see cref="OpenApiTriggerRenderOAuth2RedirectFunctionProvider"/> class.
/// </summary>
/// <param name="function"><see cref="IOpenApiTriggerFunction"/> instance.</param>
public OpenApiTriggerRenderOAuth2RedirectFunctionProvider(IOpenApiTriggerFunction function)
{
this._function = function.ThrowIfNullOrDefault();
}
/// <inheritdoc/>
[OpenApiIgnore]
[Function(nameof(OpenApiTriggerRenderOAuth2RedirectFunctionProvider.RenderOAuth2Redirect))]
public async Task<HttpResponseData> RenderOAuth2Redirect(
[HttpTrigger(AuthorizationLevel.User, "GET", Route = "oauth2-redirect.html")] HttpRequestData req,
FunctionContext ctx)
{
return await this._function.RenderOAuth2Redirect(req, ctx).ConfigureAwait(false);
}
}
}

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

@ -1,32 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\..\builds\common.props" />
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<IsPackable>true</IsPackable>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<Version>1.0.0</Version>
<PackageId>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OpenApiDocument.Admin</PackageId>
<Title>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OpenApiDocument.Admin</Title>
<Summary>This package helps render the OpenAPI document endpoint through the out-of-process worker.</Summary>
<Description>This package helps render the OpenAPI document endpoint through the out-of-process worker.</Description>
<PackageTags>Azure-Functions, OpenAPI, Swagger, Swagger-UI</PackageTags>
<AssemblyName>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OpenApiDocument.Admin</AssemblyName>
<RootNamespace>Microsoft.Azure.Functions.Worker.Extensions.OpenApi</RootNamespace>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
<DocumentationFile>bin\Debug\net5.0\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OpenApiDocument.Admin.xml</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Release'">
<DocumentationFile>bin\Release\net5.0\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OpenApiDocument.Admin.xml</DocumentationFile>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Microsoft.Azure.Functions.Worker.Extensions.OpenApi\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.csproj" />
</ItemGroup>
</Project>

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

@ -1,37 +0,0 @@
using System.Threading.Tasks;
using Microsoft.Azure.Functions.Worker.Http;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Attributes;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Extensions;
namespace Microsoft.Azure.Functions.Worker.Extensions.OpenApi.FunctionProviders
{
/// <summary>
/// This represents the function provider entity for OpenAPI HTTP trigger that renders the OpenAPI document with the <see cref="AuthorizationLevel.Admin"/> access level.
/// </summary>
public class OpenApiTriggerRenderOpenApiDocumentFunctionProvider : IOpenApiTriggerRenderOpenApiDocumentFunctionProvider
{
private readonly IOpenApiTriggerFunction _function;
/// <summary>
/// Initializes a new instance of the <see cref="OpenApiTriggerRenderOpenApiDocumentFunctionProvider"/> class.
/// </summary>
/// <param name="function"><see cref="IOpenApiTriggerFunction"/> instance.</param>
public OpenApiTriggerRenderOpenApiDocumentFunctionProvider(IOpenApiTriggerFunction function)
{
this._function = function.ThrowIfNullOrDefault();
}
/// <inheritdoc/>
[OpenApiIgnore]
[Function(nameof(OpenApiTriggerRenderOpenApiDocumentFunctionProvider.RenderOpenApiDocument))]
public async Task<HttpResponseData> RenderOpenApiDocument(
[HttpTrigger(AuthorizationLevel.Admin, "GET", Route = "openapi/{version}.{extension}")] HttpRequestData req,
string version,
string extension,
FunctionContext ctx)
{
return await this._function.RenderOpenApiDocument(req, version, extension, ctx).ConfigureAwait(false);
}
}
}

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

@ -1,32 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\..\builds\common.props" />
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<IsPackable>true</IsPackable>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<Version>1.0.0</Version>
<PackageId>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OpenApiDocument.Anonymous</PackageId>
<Title>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OpenApiDocument.Anonymous</Title>
<Summary>This package helps render the OpenAPI document endpoint through the out-of-process worker.</Summary>
<Description>This package helps render the OpenAPI document endpoint through the out-of-process worker.</Description>
<PackageTags>Azure-Functions, OpenAPI, Swagger, Swagger-UI</PackageTags>
<AssemblyName>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OpenApiDocument.Anonymous</AssemblyName>
<RootNamespace>Microsoft.Azure.Functions.Worker.Extensions.OpenApi</RootNamespace>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
<DocumentationFile>bin\Debug\net5.0\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OpenApiDocument.Anonymous.xml</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Release'">
<DocumentationFile>bin\Release\net5.0\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OpenApiDocument.Anonymous.xml</DocumentationFile>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Microsoft.Azure.Functions.Worker.Extensions.OpenApi\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.csproj" />
</ItemGroup>
</Project>

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

@ -1,37 +0,0 @@
using System.Threading.Tasks;
using Microsoft.Azure.Functions.Worker.Http;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Attributes;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Extensions;
namespace Microsoft.Azure.Functions.Worker.Extensions.OpenApi.FunctionProviders
{
/// <summary>
/// This represents the function provider entity for OpenAPI HTTP trigger that renders the OpenAPI document with the <see cref="AuthorizationLevel.Anonymous"/> access level.
/// </summary>
public class OpenApiTriggerRenderOpenApiDocumentFunctionProvider : IOpenApiTriggerRenderOpenApiDocumentFunctionProvider
{
private readonly IOpenApiTriggerFunction _function;
/// <summary>
/// Initializes a new instance of the <see cref="OpenApiTriggerRenderOpenApiDocumentFunctionProvider"/> class.
/// </summary>
/// <param name="function"><see cref="IOpenApiTriggerFunction"/> instance.</param>
public OpenApiTriggerRenderOpenApiDocumentFunctionProvider(IOpenApiTriggerFunction function)
{
this._function = function.ThrowIfNullOrDefault();
}
/// <inheritdoc/>
[OpenApiIgnore]
[Function(nameof(OpenApiTriggerRenderOpenApiDocumentFunctionProvider.RenderOpenApiDocument))]
public async Task<HttpResponseData> RenderOpenApiDocument(
[HttpTrigger(AuthorizationLevel.Anonymous, "GET", Route = "openapi/{version}.{extension}")] HttpRequestData req,
string version,
string extension,
FunctionContext ctx)
{
return await this._function.RenderOpenApiDocument(req, version, extension, ctx).ConfigureAwait(false);
}
}
}

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

@ -1,32 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\..\builds\common.props" />
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<IsPackable>true</IsPackable>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<Version>1.0.0</Version>
<PackageId>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OpenApiDocument.Function</PackageId>
<Title>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OpenApiDocument.Function</Title>
<Summary>This package helps render the OpenAPI document endpoint through the out-of-process worker.</Summary>
<Description>This package helps render the OpenAPI document endpoint through the out-of-process worker.</Description>
<PackageTags>Azure-Functions, OpenAPI, Swagger, Swagger-UI</PackageTags>
<AssemblyName>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OpenApiDocument.Function</AssemblyName>
<RootNamespace>Microsoft.Azure.Functions.Worker.Extensions.OpenApi</RootNamespace>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
<DocumentationFile>bin\Debug\net5.0\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OpenApiDocument.Function.xml</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Release'">
<DocumentationFile>bin\Release\net5.0\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OpenApiDocument.Function.xml</DocumentationFile>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Microsoft.Azure.Functions.Worker.Extensions.OpenApi\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.csproj" />
</ItemGroup>
</Project>

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

@ -1,37 +0,0 @@
using System.Threading.Tasks;
using Microsoft.Azure.Functions.Worker.Http;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Attributes;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Extensions;
namespace Microsoft.Azure.Functions.Worker.Extensions.OpenApi.FunctionProviders
{
/// <summary>
/// This represents the function provider entity for OpenAPI HTTP trigger that renders the OpenAPI document with the <see cref="AuthorizationLevel.Function"/> access level.
/// </summary>
public class OpenApiTriggerRenderOpenApiDocumentFunctionProvider : IOpenApiTriggerRenderOpenApiDocumentFunctionProvider
{
private readonly IOpenApiTriggerFunction _function;
/// <summary>
/// Initializes a new instance of the <see cref="OpenApiTriggerRenderOpenApiDocumentFunctionProvider"/> class.
/// </summary>
/// <param name="function"><see cref="IOpenApiTriggerFunction"/> instance.</param>
public OpenApiTriggerRenderOpenApiDocumentFunctionProvider(IOpenApiTriggerFunction function)
{
this._function = function.ThrowIfNullOrDefault();
}
/// <inheritdoc/>
[OpenApiIgnore]
[Function(nameof(OpenApiTriggerRenderOpenApiDocumentFunctionProvider.RenderOpenApiDocument))]
public async Task<HttpResponseData> RenderOpenApiDocument(
[HttpTrigger(AuthorizationLevel.Function, "GET", Route = "openapi/{version}.{extension}")] HttpRequestData req,
string version,
string extension,
FunctionContext ctx)
{
return await this._function.RenderOpenApiDocument(req, version, extension, ctx).ConfigureAwait(false);
}
}
}

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

@ -1,32 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\..\builds\common.props" />
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<IsPackable>true</IsPackable>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<Version>1.0.0</Version>
<PackageId>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OpenApiDocument.System</PackageId>
<Title>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OpenApiDocument.System</Title>
<Summary>This package helps render the OpenAPI document endpoint through the out-of-process worker.</Summary>
<Description>This package helps render the OpenAPI document endpoint through the out-of-process worker.</Description>
<PackageTags>Azure-Functions, OpenAPI, Swagger, Swagger-UI</PackageTags>
<AssemblyName>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OpenApiDocument.System</AssemblyName>
<RootNamespace>Microsoft.Azure.Functions.Worker.Extensions.OpenApi</RootNamespace>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
<DocumentationFile>bin\Debug\net5.0\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OpenApiDocument.System.xml</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Release'">
<DocumentationFile>bin\Release\net5.0\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OpenApiDocument.System.xml</DocumentationFile>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Microsoft.Azure.Functions.Worker.Extensions.OpenApi\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.csproj" />
</ItemGroup>
</Project>

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

@ -1,37 +0,0 @@
using System.Threading.Tasks;
using Microsoft.Azure.Functions.Worker.Http;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Attributes;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Extensions;
namespace Microsoft.Azure.Functions.Worker.Extensions.OpenApi.FunctionProviders
{
/// <summary>
/// This represents the function provider entity for OpenAPI HTTP trigger that renders the OpenAPI document with the <see cref="AuthorizationLevel.System"/> access level.
/// </summary>
public class OpenApiTriggerRenderOpenApiDocumentFunctionProvider : IOpenApiTriggerRenderOpenApiDocumentFunctionProvider
{
private readonly IOpenApiTriggerFunction _function;
/// <summary>
/// Initializes a new instance of the <see cref="OpenApiTriggerRenderOpenApiDocumentFunctionProvider"/> class.
/// </summary>
/// <param name="function"><see cref="IOpenApiTriggerFunction"/> instance.</param>
public OpenApiTriggerRenderOpenApiDocumentFunctionProvider(IOpenApiTriggerFunction function)
{
this._function = function.ThrowIfNullOrDefault();
}
/// <inheritdoc/>
[OpenApiIgnore]
[Function(nameof(OpenApiTriggerRenderOpenApiDocumentFunctionProvider.RenderOpenApiDocument))]
public async Task<HttpResponseData> RenderOpenApiDocument(
[HttpTrigger(AuthorizationLevel.System, "GET", Route = "openapi/{version}.{extension}")] HttpRequestData req,
string version,
string extension,
FunctionContext ctx)
{
return await this._function.RenderOpenApiDocument(req, version, extension, ctx).ConfigureAwait(false);
}
}
}

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

@ -1,32 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\..\builds\common.props" />
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<IsPackable>true</IsPackable>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<Version>1.0.0</Version>
<PackageId>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OpenApiDocument.User</PackageId>
<Title>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OpenApiDocument.User</Title>
<Summary>This package helps render the OpenAPI document endpoint through the out-of-process worker.</Summary>
<Description>This package helps render the OpenAPI document endpoint through the out-of-process worker.</Description>
<PackageTags>Azure-Functions, OpenAPI, Swagger, Swagger-UI</PackageTags>
<AssemblyName>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OpenApiDocument.User</AssemblyName>
<RootNamespace>Microsoft.Azure.Functions.Worker.Extensions.OpenApi</RootNamespace>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
<DocumentationFile>bin\Debug\net5.0\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OpenApiDocument.User.xml</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Release'">
<DocumentationFile>bin\Release\net5.0\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OpenApiDocument.User.xml</DocumentationFile>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Microsoft.Azure.Functions.Worker.Extensions.OpenApi\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.csproj" />
</ItemGroup>
</Project>

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

@ -1,37 +0,0 @@
using System.Threading.Tasks;
using Microsoft.Azure.Functions.Worker.Http;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Attributes;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Extensions;
namespace Microsoft.Azure.Functions.Worker.Extensions.OpenApi.FunctionProviders
{
/// <summary>
/// This represents the function provider entity for OpenAPI HTTP trigger that renders the OpenAPI document with the <see cref="AuthorizationLevel.User"/> access level.
/// </summary>
public class OpenApiTriggerRenderOpenApiDocumentFunctionProvider : IOpenApiTriggerRenderOpenApiDocumentFunctionProvider
{
private readonly IOpenApiTriggerFunction _function;
/// <summary>
/// Initializes a new instance of the <see cref="OpenApiTriggerRenderOpenApiDocumentFunctionProvider"/> class.
/// </summary>
/// <param name="function"><see cref="IOpenApiTriggerFunction"/> instance.</param>
public OpenApiTriggerRenderOpenApiDocumentFunctionProvider(IOpenApiTriggerFunction function)
{
this._function = function.ThrowIfNullOrDefault();
}
/// <inheritdoc/>
[OpenApiIgnore]
[Function(nameof(OpenApiTriggerRenderOpenApiDocumentFunctionProvider.RenderOpenApiDocument))]
public async Task<HttpResponseData> RenderOpenApiDocument(
[HttpTrigger(AuthorizationLevel.User, "GET", Route = "openapi/{version}.{extension}")] HttpRequestData req,
string version,
string extension,
FunctionContext ctx)
{
return await this._function.RenderOpenApiDocument(req, version, extension, ctx).ConfigureAwait(false);
}
}
}

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

@ -1,32 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\..\builds\common.props" />
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<IsPackable>true</IsPackable>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<Version>1.0.0</Version>
<PackageId>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerDocument.Admin</PackageId>
<Title>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerDocument.Admin</Title>
<Summary>This package helps render the Swagger document endpoint through the out-of-process worker.</Summary>
<Description>This package helps render the Swagger document endpoint through the out-of-process worker.</Description>
<PackageTags>Azure-Functions, OpenAPI, Swagger, Swagger-UI</PackageTags>
<AssemblyName>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerDocument.Admin</AssemblyName>
<RootNamespace>Microsoft.Azure.Functions.Worker.Extensions.OpenApi</RootNamespace>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
<DocumentationFile>bin\Debug\net5.0\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerDocument.Admin.xml</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Release'">
<DocumentationFile>bin\Release\net5.0\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerDocument.Admin.xml</DocumentationFile>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Microsoft.Azure.Functions.Worker.Extensions.OpenApi\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.csproj" />
</ItemGroup>
</Project>

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

@ -1,36 +0,0 @@
using System.Threading.Tasks;
using Microsoft.Azure.Functions.Worker.Http;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Attributes;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Extensions;
namespace Microsoft.Azure.Functions.Worker.Extensions.OpenApi.FunctionProviders
{
/// <summary>
/// This represents the function provider entity for OpenAPI HTTP trigger that renders the Swagger document with the <see cref="AuthorizationLevel.Admin"/> access level.
/// </summary>
public class OpenApiTriggerRenderSwaggerDocumentFunctionProvider : IOpenApiTriggerRenderSwaggerDocumentFunctionProvider
{
private readonly IOpenApiTriggerFunction _function;
/// <summary>
/// Initializes a new instance of the <see cref="OpenApiTriggerRenderSwaggerDocumentFunctionProvider"/> class.
/// </summary>
/// <param name="function"><see cref="IOpenApiTriggerFunction"/> instance.</param>
public OpenApiTriggerRenderSwaggerDocumentFunctionProvider(IOpenApiTriggerFunction function)
{
this._function = function.ThrowIfNullOrDefault();
}
/// <inheritdoc/>
[OpenApiIgnore]
[Function(nameof(OpenApiTriggerRenderSwaggerDocumentFunctionProvider.RenderSwaggerDocument))]
public async Task<HttpResponseData> RenderSwaggerDocument(
[HttpTrigger(AuthorizationLevel.Admin, "GET", Route = "swagger.{extension}")] HttpRequestData req,
string extension,
FunctionContext ctx)
{
return await this._function.RenderSwaggerDocument(req, extension, ctx).ConfigureAwait(false);
}
}
}

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

@ -1,32 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\..\builds\common.props" />
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<IsPackable>true</IsPackable>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<Version>1.0.0</Version>
<PackageId>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerDocument.Anonymous</PackageId>
<Title>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerDocument.Anonymous</Title>
<Summary>This package helps render the Swagger document endpoint through the out-of-process worker.</Summary>
<Description>This package helps render the Swagger document endpoint through the out-of-process worker.</Description>
<PackageTags>Azure-Functions, OpenAPI, Swagger, Swagger-UI</PackageTags>
<AssemblyName>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerDocument.Anonymous</AssemblyName>
<RootNamespace>Microsoft.Azure.Functions.Worker.Extensions.OpenApi</RootNamespace>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
<DocumentationFile>bin\Debug\net5.0\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerDocument.Anonymous.xml</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Release'">
<DocumentationFile>bin\Release\net5.0\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerDocument.Anonymous.xml</DocumentationFile>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Microsoft.Azure.Functions.Worker.Extensions.OpenApi\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.csproj" />
</ItemGroup>
</Project>

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

@ -1,36 +0,0 @@
using System.Threading.Tasks;
using Microsoft.Azure.Functions.Worker.Http;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Attributes;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Extensions;
namespace Microsoft.Azure.Functions.Worker.Extensions.OpenApi.FunctionProviders
{
/// <summary>
/// This represents the function provider entity for OpenAPI HTTP trigger that renders the Swagger document with the <see cref="AuthorizationLevel.Anonymous"/> access level.
/// </summary>
public class OpenApiTriggerRenderSwaggerDocumentFunctionProvider : IOpenApiTriggerRenderSwaggerDocumentFunctionProvider
{
private readonly IOpenApiTriggerFunction _function;
/// <summary>
/// Initializes a new instance of the <see cref="OpenApiTriggerRenderSwaggerDocumentFunctionProvider"/> class.
/// </summary>
/// <param name="function"><see cref="IOpenApiTriggerFunction"/> instance.</param>
public OpenApiTriggerRenderSwaggerDocumentFunctionProvider(IOpenApiTriggerFunction function)
{
this._function = function.ThrowIfNullOrDefault();
}
/// <inheritdoc/>
[OpenApiIgnore]
[Function(nameof(OpenApiTriggerRenderSwaggerDocumentFunctionProvider.RenderSwaggerDocument))]
public async Task<HttpResponseData> RenderSwaggerDocument(
[HttpTrigger(AuthorizationLevel.Anonymous, "GET", Route = "swagger.{extension}")] HttpRequestData req,
string extension,
FunctionContext ctx)
{
return await this._function.RenderSwaggerDocument(req, extension, ctx).ConfigureAwait(false);
}
}
}

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

@ -1,32 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\..\builds\common.props" />
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<IsPackable>true</IsPackable>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<Version>1.0.0</Version>
<PackageId>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerDocument.Function</PackageId>
<Title>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerDocument.Function</Title>
<Summary>This package helps render the Swagger document endpoint through the out-of-process worker.</Summary>
<Description>This package helps render the Swagger document endpoint through the out-of-process worker.</Description>
<PackageTags>Azure-Functions, OpenAPI, Swagger, Swagger-UI</PackageTags>
<AssemblyName>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerDocument.Function</AssemblyName>
<RootNamespace>Microsoft.Azure.Functions.Worker.Extensions.OpenApi</RootNamespace>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
<DocumentationFile>bin\Debug\net5.0\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerDocument.Function.xml</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Release'">
<DocumentationFile>bin\Release\net5.0\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerDocument.Function.xml</DocumentationFile>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Microsoft.Azure.Functions.Worker.Extensions.OpenApi\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.csproj" />
</ItemGroup>
</Project>

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

@ -1,36 +0,0 @@
using System.Threading.Tasks;
using Microsoft.Azure.Functions.Worker.Http;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Attributes;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Extensions;
namespace Microsoft.Azure.Functions.Worker.Extensions.OpenApi.FunctionProviders
{
/// <summary>
/// This represents the function provider entity for OpenAPI HTTP trigger that renders the Swagger document with the <see cref="AuthorizationLevel.Function"/> access level.
/// </summary>
public class OpenApiTriggerRenderSwaggerDocumentFunctionProvider : IOpenApiTriggerRenderSwaggerDocumentFunctionProvider
{
private readonly IOpenApiTriggerFunction _function;
/// <summary>
/// Initializes a new instance of the <see cref="OpenApiTriggerRenderSwaggerDocumentFunctionProvider"/> class.
/// </summary>
/// <param name="function"><see cref="IOpenApiTriggerFunction"/> instance.</param>
public OpenApiTriggerRenderSwaggerDocumentFunctionProvider(IOpenApiTriggerFunction function)
{
this._function = function.ThrowIfNullOrDefault();
}
/// <inheritdoc/>
[OpenApiIgnore]
[Function(nameof(OpenApiTriggerRenderSwaggerDocumentFunctionProvider.RenderSwaggerDocument))]
public async Task<HttpResponseData> RenderSwaggerDocument(
[HttpTrigger(AuthorizationLevel.Function, "GET", Route = "swagger.{extension}")] HttpRequestData req,
string extension,
FunctionContext ctx)
{
return await this._function.RenderSwaggerDocument(req, extension, ctx).ConfigureAwait(false);
}
}
}

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

@ -1,32 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\..\builds\common.props" />
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<IsPackable>true</IsPackable>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<Version>1.0.0</Version>
<PackageId>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerDocument.System</PackageId>
<Title>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerDocument.System</Title>
<Summary>This package helps render the Swagger document endpoint through the out-of-process worker.</Summary>
<Description>This package helps render the Swagger document endpoint through the out-of-process worker.</Description>
<PackageTags>Azure-Functions, OpenAPI, Swagger, Swagger-UI</PackageTags>
<AssemblyName>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerDocument.System</AssemblyName>
<RootNamespace>Microsoft.Azure.Functions.Worker.Extensions.OpenApi</RootNamespace>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
<DocumentationFile>bin\Debug\net5.0\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerDocument.System.xml</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Release'">
<DocumentationFile>bin\Release\net5.0\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerDocument.System.xml</DocumentationFile>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Microsoft.Azure.Functions.Worker.Extensions.OpenApi\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.csproj" />
</ItemGroup>
</Project>

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

@ -1,36 +0,0 @@
using System.Threading.Tasks;
using Microsoft.Azure.Functions.Worker.Http;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Attributes;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Extensions;
namespace Microsoft.Azure.Functions.Worker.Extensions.OpenApi.FunctionProviders
{
/// <summary>
/// This represents the function provider entity for OpenAPI HTTP trigger that renders the Swagger document with the <see cref="AuthorizationLevel.System"/> access level.
/// </summary>
public class OpenApiTriggerRenderSwaggerDocumentFunctionProvider : IOpenApiTriggerRenderSwaggerDocumentFunctionProvider
{
private readonly IOpenApiTriggerFunction _function;
/// <summary>
/// Initializes a new instance of the <see cref="OpenApiTriggerRenderSwaggerDocumentFunctionProvider"/> class.
/// </summary>
/// <param name="function"><see cref="IOpenApiTriggerFunction"/> instance.</param>
public OpenApiTriggerRenderSwaggerDocumentFunctionProvider(IOpenApiTriggerFunction function)
{
this._function = function.ThrowIfNullOrDefault();
}
/// <inheritdoc/>
[OpenApiIgnore]
[Function(nameof(OpenApiTriggerRenderSwaggerDocumentFunctionProvider.RenderSwaggerDocument))]
public async Task<HttpResponseData> RenderSwaggerDocument(
[HttpTrigger(AuthorizationLevel.System, "GET", Route = "swagger.{extension}")] HttpRequestData req,
string extension,
FunctionContext ctx)
{
return await this._function.RenderSwaggerDocument(req, extension, ctx).ConfigureAwait(false);
}
}
}

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

@ -1,32 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\..\builds\common.props" />
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<IsPackable>true</IsPackable>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<Version>1.0.0</Version>
<PackageId>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerDocument.User</PackageId>
<Title>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerDocument.User</Title>
<Summary>This package helps render the Swagger document endpoint through the out-of-process worker.</Summary>
<Description>This package helps render the Swagger document endpoint through the out-of-process worker.</Description>
<PackageTags>Azure-Functions, OpenAPI, Swagger, Swagger-UI</PackageTags>
<AssemblyName>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerDocument.User</AssemblyName>
<RootNamespace>Microsoft.Azure.Functions.Worker.Extensions.OpenApi</RootNamespace>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
<DocumentationFile>bin\Debug\net5.0\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerDocument.User.xml</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Release'">
<DocumentationFile>bin\Release\net5.0\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerDocument.User.xml</DocumentationFile>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Microsoft.Azure.Functions.Worker.Extensions.OpenApi\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.csproj" />
</ItemGroup>
</Project>

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

@ -1,36 +0,0 @@
using System.Threading.Tasks;
using Microsoft.Azure.Functions.Worker.Http;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Attributes;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Extensions;
namespace Microsoft.Azure.Functions.Worker.Extensions.OpenApi.FunctionProviders
{
/// <summary>
/// This represents the function provider entity for OpenAPI HTTP trigger that renders the Swagger document with the <see cref="AuthorizationLevel.User"/> access level.
/// </summary>
public class OpenApiTriggerRenderSwaggerDocumentFunctionProvider : IOpenApiTriggerRenderSwaggerDocumentFunctionProvider
{
private readonly IOpenApiTriggerFunction _function;
/// <summary>
/// Initializes a new instance of the <see cref="OpenApiTriggerRenderSwaggerDocumentFunctionProvider"/> class.
/// </summary>
/// <param name="function"><see cref="IOpenApiTriggerFunction"/> instance.</param>
public OpenApiTriggerRenderSwaggerDocumentFunctionProvider(IOpenApiTriggerFunction function)
{
this._function = function.ThrowIfNullOrDefault();
}
/// <inheritdoc/>
[OpenApiIgnore]
[Function(nameof(OpenApiTriggerRenderSwaggerDocumentFunctionProvider.RenderSwaggerDocument))]
public async Task<HttpResponseData> RenderSwaggerDocument(
[HttpTrigger(AuthorizationLevel.User, "GET", Route = "swagger.{extension}")] HttpRequestData req,
string extension,
FunctionContext ctx)
{
return await this._function.RenderSwaggerDocument(req, extension, ctx).ConfigureAwait(false);
}
}
}

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

@ -1,32 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\..\builds\common.props" />
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<IsPackable>true</IsPackable>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<Version>1.0.0</Version>
<PackageId>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerUI.Admin</PackageId>
<Title>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerUI.Admin</Title>
<Summary>This package helps render the Swagger UI page endpoint through the out-of-process worker.</Summary>
<Description>This package helps render the Swagger UI page endpoint through the out-of-process worker.</Description>
<PackageTags>Azure-Functions, OpenAPI, Swagger, Swagger-UI</PackageTags>
<AssemblyName>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerUI.Admin</AssemblyName>
<RootNamespace>Microsoft.Azure.Functions.Worker.Extensions.OpenApi</RootNamespace>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
<DocumentationFile>bin\Debug\net5.0\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerUI.Admin.xml</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Release'">
<DocumentationFile>bin\Release\net5.0\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerUI.Admin.xml</DocumentationFile>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Microsoft.Azure.Functions.Worker.Extensions.OpenApi\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.csproj" />
</ItemGroup>
</Project>

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

@ -1,35 +0,0 @@
using System.Threading.Tasks;
using Microsoft.Azure.Functions.Worker.Http;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Attributes;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Extensions;
namespace Microsoft.Azure.Functions.Worker.Extensions.OpenApi.FunctionProviders
{
/// <summary>
/// This represents the function provider entity for OpenAPI HTTP trigger that renders the Swagger UI page with the <see cref="AuthorizationLevel.Admin"/> access level.
/// </summary>
public class OpenApiTriggerRenderSwaggerUIFunctionProvider : IOpenApiTriggerRenderSwaggerUIFunctionProvider
{
private readonly IOpenApiTriggerFunction _function;
/// <summary>
/// Initializes a new instance of the <see cref="OpenApiTriggerRenderSwaggerUIFunctionProvider"/> class.
/// </summary>
/// <param name="function"><see cref="IOpenApiTriggerFunction"/> instance.</param>
public OpenApiTriggerRenderSwaggerUIFunctionProvider(IOpenApiTriggerFunction function)
{
this._function = function.ThrowIfNullOrDefault();
}
/// <inheritdoc/>
[OpenApiIgnore]
[Function(nameof(OpenApiTriggerRenderSwaggerUIFunctionProvider.RenderSwaggerUI))]
public async Task<HttpResponseData> RenderSwaggerUI(
[HttpTrigger(AuthorizationLevel.Admin, "GET", Route = "swagger/ui")] HttpRequestData req,
FunctionContext ctx)
{
return await this._function.RenderSwaggerUI(req, ctx);
}
}
}

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

@ -1,32 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\..\builds\common.props" />
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<IsPackable>true</IsPackable>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<Version>1.0.0</Version>
<PackageId>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerUI.Anonymous</PackageId>
<Title>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerUI.Anonymous</Title>
<Summary>This package helps render the Swagger UI page endpoint through the out-of-process worker.</Summary>
<Description>This package helps render the Swagger UI page endpoint through the out-of-process worker.</Description>
<PackageTags>Azure-Functions, OpenAPI, Swagger, Swagger-UI</PackageTags>
<AssemblyName>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerUI.Anonymous</AssemblyName>
<RootNamespace>Microsoft.Azure.Functions.Worker.Extensions.OpenApi</RootNamespace>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
<DocumentationFile>bin\Debug\net5.0\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerUI.Anonymous.xml</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Release'">
<DocumentationFile>bin\Release\net5.0\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerUI.Anonymous.xml</DocumentationFile>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Microsoft.Azure.Functions.Worker.Extensions.OpenApi\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.csproj" />
</ItemGroup>
</Project>

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

@ -1,35 +0,0 @@
using System.Threading.Tasks;
using Microsoft.Azure.Functions.Worker.Http;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Attributes;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Extensions;
namespace Microsoft.Azure.Functions.Worker.Extensions.OpenApi.FunctionProviders
{
/// <summary>
/// This represents the function provider entity for OpenAPI HTTP trigger that renders the Swagger UI page with the <see cref="AuthorizationLevel.Anonymous"/> access level.
/// </summary>
public class OpenApiTriggerRenderSwaggerUIFunctionProvider : IOpenApiTriggerRenderSwaggerUIFunctionProvider
{
private readonly IOpenApiTriggerFunction _function;
/// <summary>
/// Initializes a new instance of the <see cref="OpenApiTriggerRenderSwaggerUIFunctionProvider"/> class.
/// </summary>
/// <param name="function"><see cref="IOpenApiTriggerFunction"/> instance.</param>
public OpenApiTriggerRenderSwaggerUIFunctionProvider(IOpenApiTriggerFunction function)
{
this._function = function.ThrowIfNullOrDefault();
}
/// <inheritdoc/>
[OpenApiIgnore]
[Function(nameof(OpenApiTriggerRenderSwaggerUIFunctionProvider.RenderSwaggerUI))]
public async Task<HttpResponseData> RenderSwaggerUI(
[HttpTrigger(AuthorizationLevel.Anonymous, "GET", Route = "swagger/ui")] HttpRequestData req,
FunctionContext ctx)
{
return await this._function.RenderSwaggerUI(req, ctx);
}
}
}

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

@ -1,32 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\..\builds\common.props" />
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<IsPackable>true</IsPackable>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<Version>1.0.0</Version>
<PackageId>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerUI.Function</PackageId>
<Title>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerUI.Function</Title>
<Summary>This package helps render the Swagger UI page endpoint through the out-of-process worker.</Summary>
<Description>This package helps render the Swagger UI page endpoint through the out-of-process worker.</Description>
<PackageTags>Azure-Functions, OpenAPI, Swagger, Swagger-UI</PackageTags>
<AssemblyName>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerUI.Function</AssemblyName>
<RootNamespace>Microsoft.Azure.Functions.Worker.Extensions.OpenApi</RootNamespace>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
<DocumentationFile>bin\Debug\net5.0\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerUI.Function.xml</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Release'">
<DocumentationFile>bin\Release\net5.0\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerUI.Function.xml</DocumentationFile>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Microsoft.Azure.Functions.Worker.Extensions.OpenApi\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.csproj" />
</ItemGroup>
</Project>

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

@ -1,35 +0,0 @@
using System.Threading.Tasks;
using Microsoft.Azure.Functions.Worker.Http;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Attributes;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Extensions;
namespace Microsoft.Azure.Functions.Worker.Extensions.OpenApi.FunctionProviders
{
/// <summary>
/// This represents the function provider entity for OpenAPI HTTP trigger that renders the Swagger UI page with the <see cref="AuthorizationLevel.Function"/> access level.
/// </summary>
public class OpenApiTriggerRenderSwaggerUIFunctionProvider : IOpenApiTriggerRenderSwaggerUIFunctionProvider
{
private readonly IOpenApiTriggerFunction _function;
/// <summary>
/// Initializes a new instance of the <see cref="OpenApiTriggerRenderSwaggerUIFunctionProvider"/> class.
/// </summary>
/// <param name="function"><see cref="IOpenApiTriggerFunction"/> instance.</param>
public OpenApiTriggerRenderSwaggerUIFunctionProvider(IOpenApiTriggerFunction function)
{
this._function = function.ThrowIfNullOrDefault();
}
/// <inheritdoc/>
[OpenApiIgnore]
[Function(nameof(OpenApiTriggerRenderSwaggerUIFunctionProvider.RenderSwaggerUI))]
public async Task<HttpResponseData> RenderSwaggerUI(
[HttpTrigger(AuthorizationLevel.Function, "GET", Route = "swagger/ui")] HttpRequestData req,
FunctionContext ctx)
{
return await this._function.RenderSwaggerUI(req, ctx);
}
}
}

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

@ -1,32 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\..\builds\common.props" />
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<IsPackable>true</IsPackable>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<Version>1.0.0</Version>
<PackageId>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerUI.System</PackageId>
<Title>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerUI.System</Title>
<Summary>This package helps render the Swagger UI page endpoint through the out-of-process worker.</Summary>
<Description>This package helps render the Swagger UI page endpoint through the out-of-process worker.</Description>
<PackageTags>Azure-Functions, OpenAPI, Swagger, Swagger-UI</PackageTags>
<AssemblyName>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerUI.System</AssemblyName>
<RootNamespace>Microsoft.Azure.Functions.Worker.Extensions.OpenApi</RootNamespace>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
<DocumentationFile>bin\Debug\net5.0\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerUI.System.xml</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Release'">
<DocumentationFile>bin\Release\net5.0\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerUI.System.xml</DocumentationFile>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Microsoft.Azure.Functions.Worker.Extensions.OpenApi\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.csproj" />
</ItemGroup>
</Project>

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

@ -1,35 +0,0 @@
using System.Threading.Tasks;
using Microsoft.Azure.Functions.Worker.Http;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Attributes;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Extensions;
namespace Microsoft.Azure.Functions.Worker.Extensions.OpenApi.FunctionProviders
{
/// <summary>
/// This represents the function provider entity for OpenAPI HTTP trigger that renders the Swagger UI page with the <see cref="AuthorizationLevel.System"/> access level.
/// </summary>
public class OpenApiTriggerRenderSwaggerUIFunctionProvider : IOpenApiTriggerRenderSwaggerUIFunctionProvider
{
private readonly IOpenApiTriggerFunction _function;
/// <summary>
/// Initializes a new instance of the <see cref="OpenApiTriggerRenderSwaggerUIFunctionProvider"/> class.
/// </summary>
/// <param name="function"><see cref="IOpenApiTriggerFunction"/> instance.</param>
public OpenApiTriggerRenderSwaggerUIFunctionProvider(IOpenApiTriggerFunction function)
{
this._function = function.ThrowIfNullOrDefault();
}
/// <inheritdoc/>
[OpenApiIgnore]
[Function(nameof(OpenApiTriggerRenderSwaggerUIFunctionProvider.RenderSwaggerUI))]
public async Task<HttpResponseData> RenderSwaggerUI(
[HttpTrigger(AuthorizationLevel.System, "GET", Route = "swagger/ui")] HttpRequestData req,
FunctionContext ctx)
{
return await this._function.RenderSwaggerUI(req, ctx);
}
}
}

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

@ -1,32 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\..\builds\common.props" />
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<IsPackable>true</IsPackable>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<Version>1.0.0</Version>
<PackageId>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerUI.User</PackageId>
<Title>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerUI.User</Title>
<Summary>This package helps render the Swagger UI page endpoint through the out-of-process worker.</Summary>
<Description>This package helps render the Swagger UI page endpoint through the out-of-process worker.</Description>
<PackageTags>Azure-Functions, OpenAPI, Swagger, Swagger-UI</PackageTags>
<AssemblyName>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerUI.User</AssemblyName>
<RootNamespace>Microsoft.Azure.Functions.Worker.Extensions.OpenApi</RootNamespace>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
<DocumentationFile>bin\Debug\net5.0\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerUI.User.xml</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Release'">
<DocumentationFile>bin\Release\net5.0\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerUI.User.xml</DocumentationFile>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Microsoft.Azure.Functions.Worker.Extensions.OpenApi\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.csproj" />
</ItemGroup>
</Project>

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

@ -1,35 +0,0 @@
using System.Threading.Tasks;
using Microsoft.Azure.Functions.Worker.Http;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Attributes;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Extensions;
namespace Microsoft.Azure.Functions.Worker.Extensions.OpenApi.FunctionProviders
{
/// <summary>
/// This represents the function provider entity for OpenAPI HTTP trigger that renders the Swagger UI page with the <see cref="AuthorizationLevel.User"/> access level.
/// </summary>
public class OpenApiTriggerRenderSwaggerUIFunctionProvider : IOpenApiTriggerRenderSwaggerUIFunctionProvider
{
private readonly IOpenApiTriggerFunction _function;
/// <summary>
/// Initializes a new instance of the <see cref="OpenApiTriggerRenderSwaggerUIFunctionProvider"/> class.
/// </summary>
/// <param name="function"><see cref="IOpenApiTriggerFunction"/> instance.</param>
public OpenApiTriggerRenderSwaggerUIFunctionProvider(IOpenApiTriggerFunction function)
{
this._function = function.ThrowIfNullOrDefault();
}
/// <inheritdoc/>
[OpenApiIgnore]
[Function(nameof(OpenApiTriggerRenderSwaggerUIFunctionProvider.RenderSwaggerUI))]
public async Task<HttpResponseData> RenderSwaggerUI(
[HttpTrigger(AuthorizationLevel.User, "GET", Route = "swagger/ui")] HttpRequestData req,
FunctionContext ctx)
{
return await this._function.RenderSwaggerUI(req, ctx);
}
}
}

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

@ -1,18 +0,0 @@
namespace Microsoft.Azure.Functions.Worker.Extensions.OpenApi
{
/// <summary>
/// This represents the environment variable settings entity for OpenAPI document auth level.
/// </summary>
public class OpenApiAuthLevelSettings
{
/// <summary>
/// Gets or sets the <see cref="AuthorizationLevel"/> value for OpenAPI document rendering endpoints.
/// </summary>
public virtual AuthorizationLevel? Document { get; set; }
/// <summary>
/// Gets or sets the <see cref="AuthorizationLevel"/> value for Swagger UI page rendering endpoints.
/// </summary>
public virtual AuthorizationLevel? UI { get; set; }
}
}

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

@ -1,33 +0,0 @@
namespace Microsoft.Azure.Functions.Worker.Extensions.OpenApi
{
/// <summary>
/// This represents the environment variable settings entity for OpenAPI document.
/// </summary>
public class OpenApiSettings
{
/// <summary>
/// Gets or sets the value indicating whether to hide the Swagger UI page or not.
/// </summary>
public virtual bool HideSwaggerUI { get; set; }
/// <summary>
/// Gets or sets the API key to access to OpenAPI document.
/// </summary>
public virtual string ApiKey { get; set; }
/// <summary>
/// Gets or sets the <see cref="OpenApiAuthLevelSettings"/> object.
/// </summary>
public virtual OpenApiAuthLevelSettings AuthLevel { get; set; }
/// <summary>
/// Gets or sets the backend URL for Azure Functions Proxy.
/// </summary>
public virtual string BackendProxyUrl { get; set; }
/// <summary>
/// Gets or sets the comma delimited host names.
/// </summary>
public virtual string HostNames { get; set; }
}
}

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

@ -0,0 +1,122 @@
using System.Threading.Tasks;
using Microsoft.Azure.Functions.Worker.Http;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Attributes;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Extensions;
namespace Microsoft.Azure.Functions.Worker.Extensions.OpenApi
{
/// <summary>
/// This represents HTTP trigger entity to render OpenAPI endpoints with anonymous access.
/// </summary>
public class DefaultOpenApiHttpTrigger
{
/// <summary>
/// Defines the text/plain content type.
/// </summary>
protected const string ContentTypeText = "text/plain";
/// <summary>
/// Defines the text/html content type.
/// </summary>
protected const string ContentTypeHtml = "text/html";
/// <summary>
/// Defines the application/json content type.
/// </summary>
protected const string ContentTypeJson = "application/json";
/// <summary>
/// Defines the text/vnd.yaml content type.
/// </summary>
protected const string ContentTypeYaml = "text/vnd.yaml";
/// <summary>
/// Initializes a new instance of the <see cref="DefaultOpenApiHttpTrigger"/> class.
/// </summary>
/// <param name="function"><see cref="IOpenApiTriggerFunction"/> instance.</param>
public DefaultOpenApiHttpTrigger(IOpenApiTriggerFunction function)
{
this.Function = function.ThrowIfNullOrDefault();
}
/// <summary>
/// Gets the <see cref="IOpenApiTriggerFunction"/> instance.
/// </summary>
protected IOpenApiTriggerFunction Function { get; }
/// <summary>
/// Invokes the HTTP trigger endpoint to get OpenAPI document.
/// </summary>
/// <param name="req"><see cref="HttpRequestData"/> instance.</param>
/// <param name="extension">File extension representing the document format. This MUST be either "json" or "yaml".</param>
/// <param name="ctx"><see cref="FunctionContext"/> instance.</param>
/// <returns>OpenAPI document in a format of either JSON or YAML.</returns>
[Function(nameof(DefaultOpenApiHttpTrigger.RenderSwaggerDocument))]
[OpenApiIgnore]
public virtual async Task<HttpResponseData> RenderSwaggerDocument(
[HttpTrigger(AuthorizationLevel.Anonymous, "GET", Route = "swagger.{extension}")] HttpRequestData req,
string extension,
FunctionContext ctx)
{
var response = await this.Function.RenderSwaggerDocument(req, extension, ctx).ConfigureAwait(false);
return response;
}
/// <summary>
/// Invokes the HTTP trigger endpoint to get OpenAPI document.
/// </summary>
/// <param name="req"><see cref="HttpRequestData"/> instance.</param>
/// <param name="version">OpenAPI document spec version. This MUST be either "v2" or "v3".</param>
/// <param name="extension">File extension representing the document format. This MUST be either "json" or "yaml".</param>
/// <param name="ctx"><see cref="FunctionContext"/> instance.</param>
/// <returns>OpenAPI document in a format of either JSON or YAML.</returns>
[Function(nameof(DefaultOpenApiHttpTrigger.RenderOpenApiDocument))]
[OpenApiIgnore]
public virtual async Task<HttpResponseData> RenderOpenApiDocument(
[HttpTrigger(AuthorizationLevel.Anonymous, "GET", Route = "openapi/{version}.{extension}")] HttpRequestData req,
string version,
string extension,
FunctionContext ctx)
{
var response = await this.Function.RenderOpenApiDocument(req, version, extension, ctx).ConfigureAwait(false);
return response;
}
/// <summary>
/// Invokes the HTTP trigger endpoint to render Swagger UI in HTML.
/// </summary>
/// <param name="req"><see cref="HttpRequestData"/> instance.</param>
/// <param name="ctx"><see cref="FunctionContext"/> instance.</param>
/// <returns>Swagger UI in HTML.</returns>
[Function(nameof(DefaultOpenApiHttpTrigger.RenderSwaggerUI))]
[OpenApiIgnore]
public virtual async Task<HttpResponseData> RenderSwaggerUI(
[HttpTrigger(AuthorizationLevel.Anonymous, "GET", Route = "swagger/ui")] HttpRequestData req,
FunctionContext ctx)
{
var response = await this.Function.RenderSwaggerUI(req, ctx).ConfigureAwait(false);
return response;
}
/// <summary>
/// Invokes the HTTP trigger endpoint to render oauth2-redirect.html.
/// </summary>
/// <param name="req"><see cref="HttpRequestData"/> instance.</param>
/// <param name="ctx"><see cref="FunctionContext"/> instance.</param>
/// <returns>oauth2-redirect.html.</returns>
[Function(nameof(DefaultOpenApiHttpTrigger.RenderOAuth2Redirect))]
[OpenApiIgnore]
public virtual async Task<HttpResponseData> RenderOAuth2Redirect(
[HttpTrigger(AuthorizationLevel.Anonymous, "GET", Route = "oauth2-redirect.html")] HttpRequestData req,
FunctionContext ctx)
{
var response = await this.Function.RenderOAuth2Redirect(req, ctx).ConfigureAwait(false);
return response;
}
}
}

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

@ -4,16 +4,19 @@ using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Microsoft.Azure.Functions.Worker.Extensions.OpenApi.Core.Extensions;
using Microsoft.Azure.Functions.Worker.Extensions.OpenApi.Extensions;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Abstractions;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Enums;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Extensions;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Visitors;
using Microsoft.OpenApi;
using Microsoft.OpenApi.Models;
using Newtonsoft.Json.Serialization;
using GenericExtensions = Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Extensions.GenericExtensions;
using OpenApiDocumentExtensions = Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Extensions.OpenApiDocumentExtensions;
using StringExtensions = Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Extensions.StringExtensions;
namespace Microsoft.Azure.Functions.Worker.Extensions.OpenApi
{
/// <summary>
@ -31,7 +34,7 @@ namespace Microsoft.Azure.Functions.Worker.Extensions.OpenApi
/// </summary>
public Document(IDocumentHelper helper)
{
this._helper = helper.ThrowIfNullOrDefault();
this._helper = GenericExtensions.ThrowIfNullOrDefault(helper);
}
/// <inheritdoc />
@ -71,7 +74,7 @@ namespace Microsoft.Azure.Functions.Worker.Extensions.OpenApi
var server = new OpenApiServer { Url = baseUrl };
if (options.IsNullOrDefault())
if (GenericExtensions.IsNullOrDefault(options))
{
this.OpenApiDocument.Servers = new List<OpenApiServer>() { server };
@ -101,7 +104,7 @@ namespace Microsoft.Azure.Functions.Worker.Extensions.OpenApi
/// <inheritdoc />
public IDocument AddNamingStrategy(NamingStrategy strategy)
{
this._strategy = strategy.ThrowIfNullOrDefault();
this._strategy = GenericExtensions.ThrowIfNullOrDefault(strategy);
return this;
}
@ -109,7 +112,7 @@ namespace Microsoft.Azure.Functions.Worker.Extensions.OpenApi
/// <inheritdoc />
public IDocument AddVisitors(VisitorCollection collection)
{
this._collection = collection.ThrowIfNullOrDefault();
this._collection = GenericExtensions.ThrowIfNullOrDefault(collection);
return this;
}
@ -125,7 +128,7 @@ namespace Microsoft.Azure.Functions.Worker.Extensions.OpenApi
/// <inheritdoc />
public IDocument Build(Assembly assembly, OpenApiVersionType version = OpenApiVersionType.V2)
{
if (this._strategy.IsNullOrDefault())
if (GenericExtensions.IsNullOrDefault(this._strategy))
{
this._strategy = new DefaultNamingStrategy();
}
@ -136,19 +139,19 @@ namespace Microsoft.Azure.Functions.Worker.Extensions.OpenApi
foreach (var method in methods)
{
var trigger = this._helper.GetHttpTriggerAttribute(method);
if (trigger.IsNullOrDefault())
if (GenericExtensions.IsNullOrDefault(trigger))
{
continue;
}
var function = this._helper.GetFunctionNameAttribute(method);
if (function.IsNullOrDefault())
if (GenericExtensions.IsNullOrDefault(function))
{
continue;
}
var path = this._helper.GetHttpEndpoint(function, trigger);
if (path.IsNullOrWhiteSpace())
if (StringExtensions.IsNullOrWhiteSpace(path))
{
continue;
}
@ -159,7 +162,7 @@ namespace Microsoft.Azure.Functions.Worker.Extensions.OpenApi
var operations = item.Operations;
var operation = this._helper.GetOpenApiOperation(method, function, verb);
if (operation.IsNullOrDefault())
if (GenericExtensions.IsNullOrDefault(operation))
{
continue;
}
@ -202,7 +205,7 @@ namespace Microsoft.Azure.Functions.Worker.Extensions.OpenApi
{
using (var sw = new StringWriter())
{
this.OpenApiDocument.Serialise(sw, version, format);
OpenApiDocumentExtensions.Serialise(this.OpenApiDocument, sw, version, format);
return sw.ToString();
}

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

@ -14,7 +14,7 @@ using Microsoft.OpenApi.Models;
using Newtonsoft.Json.Serialization;
namespace Microsoft.Azure.Functions.Worker.Extensions.OpenApi.Core.Extensions
namespace Microsoft.Azure.Functions.Worker.Extensions.OpenApi.Extensions
{
/// <summary>
/// This represents the extension entity for the <see cref="DocumentHelper"/> class.

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

@ -2,7 +2,7 @@ using System.Reflection;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Extensions;
namespace Microsoft.Azure.Functions.Worker.Extensions.OpenApi.Core.Extensions
namespace Microsoft.Azure.Functions.Worker.Extensions.OpenApi.Extensions
{
/// <summary>
/// This represents the extension entity for <see cref="FunctionAttribute"/>.

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

@ -1,42 +1,47 @@
using Azure.Core.Serialization;
using Microsoft.Extensions.DependencyInjection;
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
namespace Microsoft.Azure.Functions.Worker.Extensions.OpenApi.Extensions
{
/// <summary>
/// This represents the extension entity for the instance implementing <see cref="IFunctionsWorkerApplicationBuilder"/>.
/// </summary>
public static class FunctionsWorkerApplicationBuilderExtensions
{
/// <summary>
/// Activate Newtonsoft.Json.
/// </summary>
/// <param name="builder"><see cref="IFunctionsWorkerApplicationBuilder"/> instance.</param>
/// <returns>Returns <see cref="IFunctionsWorkerApplicationBuilder"/> instance.</returns>
/// <remarks>
/// The functions worker uses the Azure SDK's ObjectSerializer to abstract away all JSON serialization. This allows you to
/// swap out the default System.Text.Json implementation for the Newtonsoft.Json implementation.
/// To do so, add the Microsoft.Azure.Core.NewtonsoftJson nuget package and then update the WorkerOptions.Serializer property.
/// This method updates the Serializer to use Newtonsoft.Json. Call /api/HttpFunction to see the changes.
///
/// Reference: https://github.com/Azure/azure-functions-dotnet-worker/blob/main/samples/Configuration/Program.cs
/// </remarks>
public static IFunctionsWorkerApplicationBuilder UseNewtonsoftJson(this IFunctionsWorkerApplicationBuilder builder)
{
builder.Services.Configure<WorkerOptions>(workerOptions =>
{
var settings = NewtonsoftJsonObjectSerializer.CreateJsonSerializerSettings();
settings.ContractResolver = new CamelCasePropertyNamesContractResolver();
settings.NullValueHandling = NullValueHandling.Ignore;
workerOptions.Serializer = new NewtonsoftJsonObjectSerializer(settings);
});
return builder;
}
}
}
using Azure.Core.Serialization;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Extensions;
using Microsoft.Extensions.DependencyInjection;
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
namespace Microsoft.Azure.Functions.Worker.Extensions.OpenApi.Extensions
{
/// <summary>
/// This represents the extension entity for the instance implementing <see cref="IFunctionsWorkerApplicationBuilder"/>.
/// </summary>
public static class FunctionsWorkerApplicationBuilderExtensions
{
/// <summary>
/// Activate Newtonsoft.Json.
/// </summary>
/// <param name="builder"><see cref="IFunctionsWorkerApplicationBuilder"/> instance.</param>
/// <param name="settings"><see cref="JsonSerializerSettings"/> instance.</param>
/// <returns>Returns <see cref="IFunctionsWorkerApplicationBuilder"/> instance.</returns>
/// <remarks>
/// The functions worker uses the Azure SDK's ObjectSerializer to abstract away all JSON serialization. This allows you to
/// swap out the default System.Text.Json implementation for the Newtonsoft.Json implementation.
/// To do so, add the Microsoft.Azure.Core.NewtonsoftJson nuget package and then update the WorkerOptions.Serializer property.
/// This method updates the Serializer to use Newtonsoft.Json. Call /api/HttpFunction to see the changes.
///
/// Reference: https://github.com/Azure/azure-functions-dotnet-worker/blob/main/samples/Configuration/Program.cs
/// </remarks>
public static IFunctionsWorkerApplicationBuilder UseNewtonsoftJson(this IFunctionsWorkerApplicationBuilder builder, JsonSerializerSettings settings = null)
{
builder.Services.Configure<WorkerOptions>(workerOptions =>
{
if (settings.IsNullOrDefault())
{
settings = NewtonsoftJsonObjectSerializer.CreateJsonSerializerSettings();
settings.ContractResolver = new CamelCasePropertyNamesContractResolver();
settings.NullValueHandling = NullValueHandling.Ignore;
}
workerOptions.Serializer = new NewtonsoftJsonObjectSerializer(settings);
});
return builder;
}
}
}

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

@ -3,7 +3,7 @@ using System.Reflection;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Extensions;
namespace Microsoft.Azure.Functions.Worker.Extensions.OpenApi.Core.Extensions
namespace Microsoft.Azure.Functions.Worker.Extensions.OpenApi.Extensions
{
/// <summary>
/// This represents the extension entity for <see cref="HttpTriggerAttribute"/>.

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

@ -20,6 +20,7 @@ namespace Microsoft.Azure.Functions.Worker.Extensions.OpenApi.Extensions
{
services.AddSingleton<IOpenApiHttpTriggerContext, OpenApiHttpTriggerContext>();
services.AddSingleton<IOpenApiTriggerFunction, OpenApiTriggerFunction>();
// services.AddSingleton<DefaultOpenApiHttpTrigger, DefaultOpenApiHttpTrigger>();
});
return hostBuilder;

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

@ -3,7 +3,6 @@ using System.IO;
using System.Net;
using System.Threading.Tasks;
using Microsoft.Azure.Functions.Worker.Extensions.OpenApi.Core.Extensions;
using Microsoft.Azure.Functions.Worker.Http;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Extensions;
using Microsoft.Extensions.Logging;

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

@ -1,6 +1,4 @@
using System.Threading.Tasks;
using Microsoft.Azure.Functions.Worker.Extensions.OpenApi.Functions;
using Microsoft.Azure.Functions.Worker.Http;
namespace Microsoft.Azure.Functions.Worker.Extensions.OpenApi
{

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

@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\..\builds\common.props" />
<Import Project="..\..\builds\worker.props" />
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
@ -15,6 +15,10 @@
<PackageTags>Azure-Functions, OpenAPI, Swagger, Swagger-UI</PackageTags>
<AssemblyName>Microsoft.Azure.Functions.Worker.Extensions.OpenApi</AssemblyName>
<RootNamespace>Microsoft.Azure.Functions.Worker.Extensions.OpenApi</RootNamespace>
<!--Version information-->
<!-- <VersionPrefix>0.7.2</VersionPrefix>
<VersionSuffix>-preview</VersionSuffix> -->
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
@ -27,11 +31,13 @@
<ItemGroup>
<PackageReference Include="Microsoft.Azure.Core.NewtonsoftJson" Version="1.0.0" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Http" Version="3.0.12" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Core" Version="1.1.0" />
<!-- <PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Abstractions" Version="1.0.0" /> -->
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.Core.Extensions\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.Core.Extensions.csproj" />
<ProjectReference Include="..\Microsoft.Azure.WebJobs.Extensions.OpenApi.Core\Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.csproj" />
</ItemGroup>
</Project>

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

@ -0,0 +1,6 @@
// // Copyright (c) .NET Foundation. All rights reserved.
// // Licensed under the MIT License. See License.txt in the project root for license information.
// using Microsoft.Azure.Functions.Worker.Extensions.Abstractions;
// [assembly: ExtensionInformation("Microsoft.Azure.WebJobs.Extensions.OpenApi", "0.7.2-preview")]

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

@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\..\builds\common.props" />
<Import Project="..\..\builds\webjobs.props" />
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>

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

@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\..\builds\common.props" />
<Import Project="..\..\builds\webjobs.props" />
<PropertyGroup>
<OutputType>Exe</OutputType>

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

@ -1,36 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\..\builds\common.props" />
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<IsPackable>true</IsPackable>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<Version>1.0.0</Version>
<PackageId>Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Extensions</PackageId>
<Title>Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Extensions</Title>
<Summary>This package extends Microsoft.Azure.WebJobs.Extensions.OpenApi.Core through the in-process worker.</Summary>
<Description>This package extends Microsoft.Azure.WebJobs.Extensions.OpenApi.Core through the in-process worker.</Description>
<PackageTags>Azure-Functions, OpenAPI, Swagger, Swagger-UI</PackageTags>
<AssemblyName>Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Extensions</AssemblyName>
<RootNamespace>Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Extensions</RootNamespace>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
<DocumentationFile>bin\Debug\netstandard2.0\Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Extensions.xml</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Release'">
<DocumentationFile>bin\Release\netstandard2.0\Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Extensions.xml</DocumentationFile>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.Http" Version="3.0.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Microsoft.Azure.WebJobs.Extensions.OpenApi.Core\Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.csproj" />
</ItemGroup>
</Project>

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

@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\..\builds\common.props" />
<Import Project="..\..\builds\webjobs.props" />
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
@ -26,12 +26,9 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Http" Version="2.1.0" />
<PackageReference Include="Microsoft.CSharp" Version="4.3.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="2.1.0" />
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.Http" Version="3.0.0" />
<PackageReference Include="Microsoft.OpenApi" Version="1.2.3" />
<PackageReference Include="Newtonsoft.Json" Version="11.0.2" />
<PackageReference Include="System.ComponentModel.Annotations" Version="4.4.0" />
<PackageReference Include="System.IO.FileSystem.Primitives" Version="4.3.0" />
<PackageReference Include="System.Runtime.Handles" Version="4.3.0" />
<PackageReference Include="System.Runtime.InteropServices" Version="4.3.0" />

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

@ -1,9 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\..\builds\common.props" />
<Import Project="..\..\builds\webjobs.props" />
<PropertyGroup>
<TargetFrameworks>netcoreapp2.1;netcoreapp3.1</TargetFrameworks>
<TargetFramework>netstandard2.0</TargetFramework>
<IsPackable>true</IsPackable>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
@ -39,7 +39,6 @@
<ItemGroup>
<ProjectReference Include="..\Microsoft.Azure.WebJobs.Extensions.OpenApi.Core\Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.csproj" />
<ProjectReference Include="..\Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Extensions\Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Extensions.csproj" />
</ItemGroup>
</Project>

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

@ -0,0 +1,96 @@
using System.Threading.Tasks;
using Microsoft.Azure.Functions.Worker.Http;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Attributes;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Extensions;
namespace Microsoft.Azure.Functions.Worker.Extensions.OpenApi
{
/// <summary>
/// This represents HTTP trigger entity to render OpenAPI endpoints with function access.
/// </summary>
public class OpenApiHttpTrigger : DefaultOpenApiHttpTrigger
{
/// <summary>
/// Initializes a new instance of the <see cref="OpenApiHttpTrigger"/> class.
/// </summary>
/// <param name="function"><see cref="IOpenApiTriggerFunction"/> instance.</param>
public OpenApiHttpTrigger(IOpenApiTriggerFunction function) : base(function)
{
}
/// <summary>
/// Invokes the HTTP trigger endpoint to get OpenAPI document.
/// </summary>
/// <param name="req"><see cref="HttpRequestData"/> instance.</param>
/// <param name="extension">File extension representing the document format. This MUST be either "json" or "yaml".</param>
/// <param name="ctx"><see cref="FunctionContext"/> instance.</param>
/// <returns>OpenAPI document in a format of either JSON or YAML.</returns>
[Function(nameof(OpenApiHttpTrigger.RenderSwaggerDocument))]
[OpenApiIgnore]
public new async Task<HttpResponseData> RenderSwaggerDocument(
[HttpTrigger(AuthorizationLevel.Function, "GET", Route = "swagger.{extension}")] HttpRequestData req,
string extension,
FunctionContext ctx)
{
var response = await this.Function.RenderSwaggerDocument(req, extension, ctx).ConfigureAwait(false);
return response;
}
/// <summary>
/// Invokes the HTTP trigger endpoint to get OpenAPI document.
/// </summary>
/// <param name="req"><see cref="HttpRequestData"/> instance.</param>
/// <param name="version">OpenAPI document spec version. This MUST be either "v2" or "v3".</param>
/// <param name="extension">File extension representing the document format. This MUST be either "json" or "yaml".</param>
/// <param name="ctx"><see cref="FunctionContext"/> instance.</param>
/// <returns>OpenAPI document in a format of either JSON or YAML.</returns>
[Function(nameof(OpenApiHttpTrigger.RenderOpenApiDocument))]
[OpenApiIgnore]
public new async Task<HttpResponseData> RenderOpenApiDocument(
[HttpTrigger(AuthorizationLevel.Function, "GET", Route = "openapi/{version}.{extension}")] HttpRequestData req,
string version,
string extension,
FunctionContext ctx)
{
var response = await this.Function.RenderOpenApiDocument(req, version, extension, ctx).ConfigureAwait(false);
return response;
}
/// <summary>
/// Invokes the HTTP trigger endpoint to render Swagger UI in HTML.
/// </summary>
/// <param name="req"><see cref="HttpRequestData"/> instance.</param>
/// <param name="ctx"><see cref="FunctionContext"/> instance.</param>
/// <returns>Swagger UI in HTML.</returns>
[Function(nameof(OpenApiHttpTrigger.RenderSwaggerUI))]
[OpenApiIgnore]
public new async Task<HttpResponseData> RenderSwaggerUI(
[HttpTrigger(AuthorizationLevel.Function, "GET", Route = "swagger/ui")] HttpRequestData req,
FunctionContext ctx)
{
var response = await this.Function.RenderSwaggerUI(req, ctx).ConfigureAwait(false);
return response;
}
/// <summary>
/// Invokes the HTTP trigger endpoint to render oauth2-redirect.html.
/// </summary>
/// <param name="req"><see cref="HttpRequestData"/> instance.</param>
/// <param name="ctx"><see cref="FunctionContext"/> instance.</param>
/// <returns>oauth2-redirect.html.</returns>
[Function(nameof(OpenApiHttpTrigger.RenderOAuth2Redirect))]
[OpenApiIgnore]
public new async Task<HttpResponseData> RenderOAuth2Redirect(
[HttpTrigger(AuthorizationLevel.Function, "GET", Route = "oauth2-redirect.html")] HttpRequestData req,
FunctionContext ctx)
{
var response = await this.Function.RenderOAuth2Redirect(req, ctx).ConfigureAwait(false);
return response;
}
}
}

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

@ -1,24 +0,0 @@
using System;
using System.Collections.Generic;
namespace Microsoft.Azure.Functions.Worker.Extensions.OpenApi.Core.Extensions.Tests.Fakes
{
public class FakeFunctionContext : FunctionContext
{
public override string InvocationId { get; }
public override string FunctionId { get; }
public override TraceContext TraceContext { get; }
public override BindingContext BindingContext { get; }
public override IServiceProvider InstanceServices { get; set; }
public override FunctionDefinition FunctionDefinition => throw new NotImplementedException();
public override IDictionary<object, object> Items { get => throw new NotImplementedException(); set => throw new NotImplementedException(); }
public override IInvocationFeatures Features => throw new NotImplementedException();
}
}

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

@ -1,41 +0,0 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Security.Claims;
using Microsoft.Azure.Functions.Worker.Http;
namespace Microsoft.Azure.Functions.Worker.Extensions.OpenApi.Core.Extensions.Tests.Fakes
{
public class FakeHttpRequestData : HttpRequestData
{
private Uri _uri;
public FakeHttpRequestData(FunctionContext functionContext)
: base(functionContext)
{
}
public override Stream Body { get; }
public override HttpHeadersCollection Headers { get; }
public override IReadOnlyCollection<IHttpCookie> Cookies { get; }
public override Uri Url { get { return this._uri; } }
public override IEnumerable<ClaimsIdentity> Identities { get; }
public override string Method { get; }
public override HttpResponseData CreateResponse()
{
return new FakeHttpResponseData(this.FunctionContext);
}
public void SetUri(Uri uri)
{
this._uri = uri;
}
}
}

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

@ -1,20 +0,0 @@
using System.IO;
using System.Net;
using Microsoft.Azure.Functions.Worker.Http;
namespace Microsoft.Azure.Functions.Worker.Extensions.OpenApi.Core.Extensions.Tests.Fakes
{
public class FakeHttpResponseData : HttpResponseData
{
public FakeHttpResponseData(FunctionContext functionContext)
: base(functionContext)
{
}
public override HttpStatusCode StatusCode { get; set; }
public override HttpHeadersCollection Headers { get; set; }
public override Stream Body { get; set; }
public override HttpCookies Cookies { get; }
}
}

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

@ -1,15 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<AssemblyName>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.Core.Extensions.Tests.Fakes</AssemblyName>
<RootNamespace>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.Core.Extensions.Tests.Fakes</RootNamespace>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Http" Version="3.0.12" />
<PackageReference Include="Microsoft.Azure.Functions.Worker" Version="1.1.0" />
</ItemGroup>
</Project>

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

@ -1,34 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<IsPackable>false</IsPackable>
<AssemblyName>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.Core.Extensions.Tests</AssemblyName>
<RootNamespace>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.Core.Extensions.Tests</RootNamespace>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="coverlet.collector" Version="3.0.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="coverlet.msbuild" Version="3.0.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="FluentAssertions" Version="5.10.3" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.8.3" />
<PackageReference Include="Moq" Version="4.16.0" />
<PackageReference Include="MSTest.TestAdapter" Version="2.1.2" />
<PackageReference Include="MSTest.TestFramework" Version="2.1.2" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\src\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.Core.Extensions\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.Core.Extensions.csproj" />
<ProjectReference Include="..\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.Core.Extensions.Tests.Fakes\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.Core.Extensions.Tests.Fakes.csproj" />
<ProjectReference Include="..\Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Tests.Fakes\Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Tests.Fakes.csproj" />
</ItemGroup>
</Project>

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

@ -1,35 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<IsPackable>false</IsPackable>
<AssemblyName>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.FunctionProviders.Admin.Tests</AssemblyName>
<RootNamespace>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.FunctionProviders.Admin.Tests</RootNamespace>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="coverlet.collector" Version="3.0.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="coverlet.msbuild" Version="3.0.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="FluentAssertions" Version="5.10.3" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.8.3" />
<PackageReference Include="Moq" Version="4.16.0" />
<PackageReference Include="MSTest.TestAdapter" Version="2.1.2" />
<PackageReference Include="MSTest.TestFramework" Version="2.1.2" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\src\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OAuth2Redirect.Admin\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OAuth2Redirect.Admin.csproj" />
<ProjectReference Include="..\..\src\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OpenApiDocument.Admin\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OpenApiDocument.Admin.csproj" />
<ProjectReference Include="..\..\src\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerDocument.Admin\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerDocument.Admin.csproj" />
<ProjectReference Include="..\..\src\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerUI.Admin\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerUI.Admin.csproj" />
</ItemGroup>
</Project>

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

@ -1,44 +0,0 @@
using System;
using FluentAssertions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Microsoft.Azure.Functions.Worker.Extensions.OpenApi.FunctionProviders.Admin.Tests
{
[TestClass]
public class OpenApiTriggerRenderFunctionProviderTests
{
[TestMethod]
public void Given_Null_When_OAuth2Redirect_Instantiated_Then_It_Should_Throw_Exception()
{
Action action = () => new OpenApiTriggerRenderOAuth2RedirectFunctionProvider(null);
action.Should().Throw<ArgumentNullException>();
}
[TestMethod]
public void Given_Null_When_OpenApiDocument_Instantiated_Then_It_Should_Throw_Exception()
{
Action action = () => new OpenApiTriggerRenderOpenApiDocumentFunctionProvider(null);
action.Should().Throw<ArgumentNullException>();
}
[TestMethod]
public void Given_Null_When_SwaggerDocument_Instantiated_Then_It_Should_Throw_Exception()
{
Action action = () => new OpenApiTriggerRenderSwaggerDocumentFunctionProvider(null);
action.Should().Throw<ArgumentNullException>();
}
[TestMethod]
public void Given_Null_When_SwaggerUI_Instantiated_Then_It_Should_Throw_Exception()
{
Action action = () => new OpenApiTriggerRenderSwaggerUIFunctionProvider(null);
action.Should().Throw<ArgumentNullException>();
}
}
}

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

@ -1,35 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<IsPackable>false</IsPackable>
<AssemblyName>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.FunctionProviders.Anonymous.Tests</AssemblyName>
<RootNamespace>Microsoft.Azure.Functions.Worker.Extensions.OpenApi.FunctionProviders.Anonymous.Tests</RootNamespace>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="coverlet.collector" Version="3.0.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="coverlet.msbuild" Version="3.0.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="FluentAssertions" Version="5.10.3" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.8.3" />
<PackageReference Include="Moq" Version="4.16.0" />
<PackageReference Include="MSTest.TestAdapter" Version="2.1.2" />
<PackageReference Include="MSTest.TestFramework" Version="2.1.2" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\src\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OAuth2Redirect.Anonymous\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OAuth2Redirect.Anonymous.csproj" />
<ProjectReference Include="..\..\src\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OpenApiDocument.Anonymous\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.OpenApiDocument.Anonymous.csproj" />
<ProjectReference Include="..\..\src\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerDocument.Anonymous\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerDocument.Anonymous.csproj" />
<ProjectReference Include="..\..\src\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerUI.Anonymous\Microsoft.Azure.Functions.Worker.Extensions.OpenApi.SwaggerUI.Anonymous.csproj" />
</ItemGroup>
</Project>

Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше