diff --git a/.vscode/launch.json b/.vscode/launch.json
new file mode 100644
index 0000000..cfe7bd9
--- /dev/null
+++ b/.vscode/launch.json
@@ -0,0 +1,35 @@
+{
+ "version": "0.2.0",
+ "configurations": [
+ {
+ // Use IntelliSense to find out which attributes exist for C# debugging
+ // Use hover for the description of the existing attributes
+ // For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
+ "name": ".NET Core Launch (web)",
+ "type": "coreclr",
+ "request": "launch",
+ "preLaunchTask": "build",
+ // If you have changed target frameworks, make sure to update the program path.
+ "program": "${workspaceFolder}/DockerStudyApi/bin/Debug/net5.0/DockerStudyApi.dll",
+ "args": [],
+ "cwd": "${workspaceFolder}/DockerStudyApi",
+ "stopAtEntry": false,
+ // Enable launching a web browser when ASP.NET Core starts. For more information: https://aka.ms/VSCode-CS-LaunchJson-WebBrowser
+ "serverReadyAction": {
+ "action": "openExternally",
+ "pattern": "\\bNow listening on:\\s+(https?://\\S+)"
+ },
+ "env": {
+ "ASPNETCORE_ENVIRONMENT": "Development"
+ },
+ "sourceFileMap": {
+ "/Views": "${workspaceFolder}/Views"
+ }
+ },
+ {
+ "name": ".NET Core Attach",
+ "type": "coreclr",
+ "request": "attach"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/.vscode/tasks.json b/.vscode/tasks.json
new file mode 100644
index 0000000..1266b45
--- /dev/null
+++ b/.vscode/tasks.json
@@ -0,0 +1,42 @@
+{
+ "version": "2.0.0",
+ "tasks": [
+ {
+ "label": "build",
+ "command": "dotnet",
+ "type": "process",
+ "args": [
+ "build",
+ "${workspaceFolder}/DockerStudyApi/DockerStudyApi.csproj",
+ "/property:GenerateFullPaths=true",
+ "/consoleloggerparameters:NoSummary"
+ ],
+ "problemMatcher": "$msCompile"
+ },
+ {
+ "label": "publish",
+ "command": "dotnet",
+ "type": "process",
+ "args": [
+ "publish",
+ "${workspaceFolder}/DockerStudyApi/DockerStudyApi.csproj",
+ "/property:GenerateFullPaths=true",
+ "/consoleloggerparameters:NoSummary"
+ ],
+ "problemMatcher": "$msCompile"
+ },
+ {
+ "label": "watch",
+ "command": "dotnet",
+ "type": "process",
+ "args": [
+ "watch",
+ "run",
+ "${workspaceFolder}/DockerStudyApi/DockerStudyApi.csproj",
+ "/property:GenerateFullPaths=true",
+ "/consoleloggerparameters:NoSummary"
+ ],
+ "problemMatcher": "$msCompile"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/Build/Dockerfile.ENV b/Build/Dockerfile.ENV
index 75e4d0f..cb3b481 100644
--- a/Build/Dockerfile.ENV
+++ b/Build/Dockerfile.ENV
@@ -1,4 +1,6 @@
-# 注释: Dockerfile学习镜像
-FROM busybox
-ENV file=app
-ADD ./project/ /usr/local/$file/
\ No newline at end of file
+# Deckerfile 环境变量测试
+FROM mcr.microsoft.com/dotnet/aspnet:5.0 AS EnvStudy
+ENV DockerfileEvn_A=InDockerfile
+WORKDIR /app
+COPY WebApiPublish/ /app/
+ENTRYPOINT ["dotnet", "DockerStudyApi.dll"]
\ No newline at end of file
diff --git a/Build/WebApiPublish/DockerStudyApi.deps.json b/Build/WebApiPublish/DockerStudyApi.deps.json
index 65051db..b8ffa8e 100644
--- a/Build/WebApiPublish/DockerStudyApi.deps.json
+++ b/Build/WebApiPublish/DockerStudyApi.deps.json
@@ -34,12 +34,14 @@
"DockerStudyApi/1.0.0": {
"dependencies": {
"Microsoft.AspNetCore.Mvc.NewtonsoftJson": "5.0.12",
+ "Microsoft.Extensions.Hosting.Systemd": "6.0.0",
+ "Microsoft.Extensions.Hosting.WindowsServices": "6.0.0",
"Microsoft.Extensions.Options": "6.0.0",
"Microsoft.Extensions.Options.ConfigurationExtensions": "6.0.0",
"Microsoft.Extensions.Options.DataAnnotations": "6.0.0",
"Microsoft.VisualStudio.Azure.Containers.Tools.Targets": "1.11.1",
"Newtonsoft.Json": "13.0.1",
- "Swashbuckle.AspNetCore": "5.6.3",
+ "Swashbuckle.AspNetCore": "6.2.3",
"Swashbuckle.AspNetCore.Newtonsoft": "6.2.3",
"Microsoft.AspNetCore.Antiforgery": "5.0.0.0",
"Microsoft.AspNetCore.Authentication.Abstractions": "5.0.0.0",
@@ -121,37 +123,18 @@
"Microsoft.CSharp.Reference": "5.0.0.0",
"Microsoft.Extensions.Caching.Abstractions": "5.0.0.0",
"Microsoft.Extensions.Caching.Memory": "5.0.0.0",
- "Microsoft.Extensions.Configuration.CommandLine": "5.0.0.0",
- "Microsoft.Extensions.Configuration": "5.0.0.0",
- "Microsoft.Extensions.Configuration.EnvironmentVariables": "5.0.0.0",
- "Microsoft.Extensions.Configuration.FileExtensions": "5.0.0.0",
"Microsoft.Extensions.Configuration.Ini": "5.0.0.0",
- "Microsoft.Extensions.Configuration.Json": "5.0.0.0",
"Microsoft.Extensions.Configuration.KeyPerFile": "5.0.0.0",
- "Microsoft.Extensions.Configuration.UserSecrets": "5.0.0.0",
"Microsoft.Extensions.Configuration.Xml": "5.0.0.0",
- "Microsoft.Extensions.DependencyInjection": "5.0.0.0",
"Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions": "5.0.0.0",
"Microsoft.Extensions.Diagnostics.HealthChecks": "5.0.0.0",
- "Microsoft.Extensions.FileProviders.Abstractions": "5.0.0.0",
"Microsoft.Extensions.FileProviders.Composite": "5.0.0.0",
"Microsoft.Extensions.FileProviders.Embedded": "5.0.0.0",
- "Microsoft.Extensions.FileProviders.Physical": "5.0.0.0",
- "Microsoft.Extensions.FileSystemGlobbing": "5.0.0.0",
- "Microsoft.Extensions.Hosting.Abstractions": "5.0.0.0",
- "Microsoft.Extensions.Hosting": "5.0.0.0",
"Microsoft.Extensions.Http": "5.0.0.0",
"Microsoft.Extensions.Identity.Core": "5.0.0.0",
"Microsoft.Extensions.Identity.Stores": "5.0.0.0",
"Microsoft.Extensions.Localization.Abstractions": "5.0.0.0",
"Microsoft.Extensions.Localization": "5.0.0.0",
- "Microsoft.Extensions.Logging.Abstractions": "5.0.0.0",
- "Microsoft.Extensions.Logging.Configuration": "5.0.0.0",
- "Microsoft.Extensions.Logging.Console": "5.0.0.0",
- "Microsoft.Extensions.Logging.Debug": "5.0.0.0",
- "Microsoft.Extensions.Logging": "5.0.0.0",
- "Microsoft.Extensions.Logging.EventLog": "5.0.0.0",
- "Microsoft.Extensions.Logging.EventSource": "5.0.0.0",
"Microsoft.Extensions.Logging.TraceSource": "5.0.0.0",
"Microsoft.Extensions.ObjectPool": "5.0.0.0",
"Microsoft.Extensions.WebEncoders": "5.0.0.0",
@@ -160,11 +143,11 @@
"Microsoft.VisualBasic.Core": "10.0.6.0",
"Microsoft.VisualBasic": "10.0.0.0",
"Microsoft.Win32.Primitives": "5.0.0.0",
- "Microsoft.Win32.Registry": "5.0.0.0",
+ "Microsoft.Win32.Registry.Reference": "5.0.0.0",
"mscorlib": "4.0.0.0",
"netstandard": "2.1.0.0",
"System.AppContext": "5.0.0.0",
- "System.Buffers": "5.0.0.0",
+ "System.Buffers.Reference": "5.0.0.0",
"System.Collections.Concurrent": "5.0.0.0",
"System.Collections": "5.0.0.0",
"System.Collections.Immutable": "5.0.0.0",
@@ -184,8 +167,6 @@
"System.Data": "4.0.0.0",
"System.Diagnostics.Contracts": "5.0.0.0",
"System.Diagnostics.Debug": "5.0.0.0",
- "System.Diagnostics.DiagnosticSource": "5.0.0.0",
- "System.Diagnostics.EventLog": "5.0.0.0",
"System.Diagnostics.FileVersionInfo": "5.0.0.0",
"System.Diagnostics.Process": "5.0.0.0",
"System.Diagnostics.StackTrace": "5.0.0.0",
@@ -219,7 +200,7 @@
"System.Linq.Expressions": "5.0.0.0",
"System.Linq.Parallel": "5.0.0.0",
"System.Linq.Queryable": "5.0.0.0",
- "System.Memory": "5.0.0.0",
+ "System.Memory.Reference": "5.0.0.0",
"System.Net": "4.0.0.0",
"System.Net.Http": "5.0.0.0",
"System.Net.Http.Json": "5.0.0.0",
@@ -267,7 +248,7 @@
"System.Runtime.Serialization.Json": "5.0.0.0",
"System.Runtime.Serialization.Primitives": "5.0.0.0",
"System.Runtime.Serialization.Xml": "5.0.0.0",
- "System.Security.AccessControl": "5.0.0.0",
+ "System.Security.AccessControl.Reference": "5.0.0.0",
"System.Security.Claims": "5.0.0.0",
"System.Security.Cryptography.Algorithms": "5.0.0.0",
"System.Security.Cryptography.Cng": "5.0.0.0",
@@ -279,15 +260,13 @@
"System.Security": "4.0.0.0",
"System.Security.Permissions": "5.0.0.0",
"System.Security.Principal": "5.0.0.0",
- "System.Security.Principal.Windows": "5.0.0.0",
+ "System.Security.Principal.Windows.Reference": "5.0.0.0",
"System.Security.SecureString": "5.0.0.0",
"System.ServiceModel.Web": "4.0.0.0",
"System.ServiceProcess": "4.0.0.0",
"System.Text.Encoding.CodePages": "5.0.0.0",
"System.Text.Encoding": "5.0.0.0",
"System.Text.Encoding.Extensions": "5.0.0.0",
- "System.Text.Encodings.Web": "5.0.0.0",
- "System.Text.Json": "5.0.0.0",
"System.Text.RegularExpressions": "5.0.0.0",
"System.Threading.Channels": "5.0.0.0",
"System.Threading": "5.0.0.0",
@@ -357,6 +336,21 @@
},
"Microsoft.CSharp/4.7.0": {},
"Microsoft.Extensions.ApiDescription.Server/3.0.0": {},
+ "Microsoft.Extensions.Configuration/6.0.0": {
+ "dependencies": {
+ "Microsoft.Extensions.Configuration.Abstractions": "6.0.0",
+ "Microsoft.Extensions.Primitives": "6.0.0"
+ },
+ "runtime": {
+ "lib/netstandard2.0/Microsoft.Extensions.Configuration.dll": {
+ "assemblyVersion": "6.0.0.0",
+ "fileVersion": "6.0.21.52210"
+ }
+ },
+ "compile": {
+ "lib/netstandard2.0/Microsoft.Extensions.Configuration.dll": {}
+ }
+ },
"Microsoft.Extensions.Configuration.Abstractions/6.0.0": {
"dependencies": {
"Microsoft.Extensions.Primitives": "6.0.0"
@@ -385,6 +379,104 @@
"lib/netstandard2.0/Microsoft.Extensions.Configuration.Binder.dll": {}
}
},
+ "Microsoft.Extensions.Configuration.CommandLine/6.0.0": {
+ "dependencies": {
+ "Microsoft.Extensions.Configuration": "6.0.0",
+ "Microsoft.Extensions.Configuration.Abstractions": "6.0.0"
+ },
+ "runtime": {
+ "lib/netstandard2.0/Microsoft.Extensions.Configuration.CommandLine.dll": {
+ "assemblyVersion": "6.0.0.0",
+ "fileVersion": "6.0.21.52210"
+ }
+ },
+ "compile": {
+ "lib/netstandard2.0/Microsoft.Extensions.Configuration.CommandLine.dll": {}
+ }
+ },
+ "Microsoft.Extensions.Configuration.EnvironmentVariables/6.0.0": {
+ "dependencies": {
+ "Microsoft.Extensions.Configuration": "6.0.0",
+ "Microsoft.Extensions.Configuration.Abstractions": "6.0.0"
+ },
+ "runtime": {
+ "lib/netstandard2.0/Microsoft.Extensions.Configuration.EnvironmentVariables.dll": {
+ "assemblyVersion": "6.0.0.0",
+ "fileVersion": "6.0.21.52210"
+ }
+ },
+ "compile": {
+ "lib/netstandard2.0/Microsoft.Extensions.Configuration.EnvironmentVariables.dll": {}
+ }
+ },
+ "Microsoft.Extensions.Configuration.FileExtensions/6.0.0": {
+ "dependencies": {
+ "Microsoft.Extensions.Configuration": "6.0.0",
+ "Microsoft.Extensions.Configuration.Abstractions": "6.0.0",
+ "Microsoft.Extensions.FileProviders.Abstractions": "6.0.0",
+ "Microsoft.Extensions.FileProviders.Physical": "6.0.0",
+ "Microsoft.Extensions.Primitives": "6.0.0"
+ },
+ "runtime": {
+ "lib/netstandard2.0/Microsoft.Extensions.Configuration.FileExtensions.dll": {
+ "assemblyVersion": "6.0.0.0",
+ "fileVersion": "6.0.21.52210"
+ }
+ },
+ "compile": {
+ "lib/netstandard2.0/Microsoft.Extensions.Configuration.FileExtensions.dll": {}
+ }
+ },
+ "Microsoft.Extensions.Configuration.Json/6.0.0": {
+ "dependencies": {
+ "Microsoft.Extensions.Configuration": "6.0.0",
+ "Microsoft.Extensions.Configuration.Abstractions": "6.0.0",
+ "Microsoft.Extensions.Configuration.FileExtensions": "6.0.0",
+ "Microsoft.Extensions.FileProviders.Abstractions": "6.0.0",
+ "System.Text.Json": "6.0.0"
+ },
+ "runtime": {
+ "lib/netstandard2.1/Microsoft.Extensions.Configuration.Json.dll": {
+ "assemblyVersion": "6.0.0.0",
+ "fileVersion": "6.0.21.52210"
+ }
+ },
+ "compile": {
+ "lib/netstandard2.1/Microsoft.Extensions.Configuration.Json.dll": {}
+ }
+ },
+ "Microsoft.Extensions.Configuration.UserSecrets/6.0.0": {
+ "dependencies": {
+ "Microsoft.Extensions.Configuration.Abstractions": "6.0.0",
+ "Microsoft.Extensions.Configuration.Json": "6.0.0",
+ "Microsoft.Extensions.FileProviders.Abstractions": "6.0.0",
+ "Microsoft.Extensions.FileProviders.Physical": "6.0.0"
+ },
+ "runtime": {
+ "lib/netstandard2.0/Microsoft.Extensions.Configuration.UserSecrets.dll": {
+ "assemblyVersion": "6.0.0.0",
+ "fileVersion": "6.0.21.52210"
+ }
+ },
+ "compile": {
+ "lib/netstandard2.0/Microsoft.Extensions.Configuration.UserSecrets.dll": {}
+ }
+ },
+ "Microsoft.Extensions.DependencyInjection/6.0.0": {
+ "dependencies": {
+ "Microsoft.Extensions.DependencyInjection.Abstractions": "6.0.0",
+ "System.Runtime.CompilerServices.Unsafe": "6.0.0"
+ },
+ "runtime": {
+ "lib/netstandard2.1/Microsoft.Extensions.DependencyInjection.dll": {
+ "assemblyVersion": "6.0.0.0",
+ "fileVersion": "6.0.21.52210"
+ }
+ },
+ "compile": {
+ "lib/netstandard2.1/Microsoft.Extensions.DependencyInjection.dll": {}
+ }
+ },
"Microsoft.Extensions.DependencyInjection.Abstractions/6.0.0": {
"runtime": {
"lib/netstandard2.1/Microsoft.Extensions.DependencyInjection.Abstractions.dll": {
@@ -396,6 +488,254 @@
"lib/netstandard2.1/Microsoft.Extensions.DependencyInjection.Abstractions.dll": {}
}
},
+ "Microsoft.Extensions.FileProviders.Abstractions/6.0.0": {
+ "dependencies": {
+ "Microsoft.Extensions.Primitives": "6.0.0"
+ },
+ "runtime": {
+ "lib/netstandard2.0/Microsoft.Extensions.FileProviders.Abstractions.dll": {
+ "assemblyVersion": "6.0.0.0",
+ "fileVersion": "6.0.21.52210"
+ }
+ },
+ "compile": {
+ "lib/netstandard2.0/Microsoft.Extensions.FileProviders.Abstractions.dll": {}
+ }
+ },
+ "Microsoft.Extensions.FileProviders.Physical/6.0.0": {
+ "dependencies": {
+ "Microsoft.Extensions.FileProviders.Abstractions": "6.0.0",
+ "Microsoft.Extensions.FileSystemGlobbing": "6.0.0",
+ "Microsoft.Extensions.Primitives": "6.0.0"
+ },
+ "runtime": {
+ "lib/netstandard2.0/Microsoft.Extensions.FileProviders.Physical.dll": {
+ "assemblyVersion": "6.0.0.0",
+ "fileVersion": "6.0.21.52210"
+ }
+ },
+ "compile": {
+ "lib/netstandard2.0/Microsoft.Extensions.FileProviders.Physical.dll": {}
+ }
+ },
+ "Microsoft.Extensions.FileSystemGlobbing/6.0.0": {
+ "runtime": {
+ "lib/netstandard2.0/Microsoft.Extensions.FileSystemGlobbing.dll": {
+ "assemblyVersion": "6.0.0.0",
+ "fileVersion": "6.0.21.52210"
+ }
+ },
+ "compile": {
+ "lib/netstandard2.0/Microsoft.Extensions.FileSystemGlobbing.dll": {}
+ }
+ },
+ "Microsoft.Extensions.Hosting/6.0.0": {
+ "dependencies": {
+ "Microsoft.Extensions.Configuration": "6.0.0",
+ "Microsoft.Extensions.Configuration.Abstractions": "6.0.0",
+ "Microsoft.Extensions.Configuration.Binder": "6.0.0",
+ "Microsoft.Extensions.Configuration.CommandLine": "6.0.0",
+ "Microsoft.Extensions.Configuration.EnvironmentVariables": "6.0.0",
+ "Microsoft.Extensions.Configuration.FileExtensions": "6.0.0",
+ "Microsoft.Extensions.Configuration.Json": "6.0.0",
+ "Microsoft.Extensions.Configuration.UserSecrets": "6.0.0",
+ "Microsoft.Extensions.DependencyInjection": "6.0.0",
+ "Microsoft.Extensions.DependencyInjection.Abstractions": "6.0.0",
+ "Microsoft.Extensions.FileProviders.Abstractions": "6.0.0",
+ "Microsoft.Extensions.FileProviders.Physical": "6.0.0",
+ "Microsoft.Extensions.Hosting.Abstractions": "6.0.0",
+ "Microsoft.Extensions.Logging": "6.0.0",
+ "Microsoft.Extensions.Logging.Abstractions": "6.0.0",
+ "Microsoft.Extensions.Logging.Configuration": "6.0.0",
+ "Microsoft.Extensions.Logging.Console": "6.0.0",
+ "Microsoft.Extensions.Logging.Debug": "6.0.0",
+ "Microsoft.Extensions.Logging.EventLog": "6.0.0",
+ "Microsoft.Extensions.Logging.EventSource": "6.0.0",
+ "Microsoft.Extensions.Options": "6.0.0"
+ },
+ "runtime": {
+ "lib/netstandard2.1/Microsoft.Extensions.Hosting.dll": {
+ "assemblyVersion": "6.0.0.0",
+ "fileVersion": "6.0.21.52210"
+ }
+ },
+ "compile": {
+ "lib/netstandard2.1/Microsoft.Extensions.Hosting.dll": {}
+ }
+ },
+ "Microsoft.Extensions.Hosting.Abstractions/6.0.0": {
+ "dependencies": {
+ "Microsoft.Extensions.Configuration.Abstractions": "6.0.0",
+ "Microsoft.Extensions.DependencyInjection.Abstractions": "6.0.0",
+ "Microsoft.Extensions.FileProviders.Abstractions": "6.0.0"
+ },
+ "runtime": {
+ "lib/netstandard2.1/Microsoft.Extensions.Hosting.Abstractions.dll": {
+ "assemblyVersion": "6.0.0.0",
+ "fileVersion": "6.0.21.52210"
+ }
+ },
+ "compile": {
+ "lib/netstandard2.1/Microsoft.Extensions.Hosting.Abstractions.dll": {}
+ }
+ },
+ "Microsoft.Extensions.Hosting.Systemd/6.0.0": {
+ "dependencies": {
+ "Microsoft.Extensions.Hosting": "6.0.0"
+ },
+ "runtime": {
+ "lib/netstandard2.1/Microsoft.Extensions.Hosting.Systemd.dll": {
+ "assemblyVersion": "6.0.0.0",
+ "fileVersion": "6.0.21.52210"
+ }
+ },
+ "compile": {
+ "lib/netstandard2.1/Microsoft.Extensions.Hosting.Systemd.dll": {}
+ }
+ },
+ "Microsoft.Extensions.Hosting.WindowsServices/6.0.0": {
+ "dependencies": {
+ "Microsoft.Extensions.Hosting": "6.0.0",
+ "Microsoft.Extensions.Logging.EventLog": "6.0.0",
+ "System.ServiceProcess.ServiceController": "6.0.0"
+ },
+ "runtime": {
+ "lib/netstandard2.1/Microsoft.Extensions.Hosting.WindowsServices.dll": {
+ "assemblyVersion": "6.0.0.0",
+ "fileVersion": "6.0.21.52210"
+ }
+ },
+ "compile": {
+ "lib/netstandard2.1/Microsoft.Extensions.Hosting.WindowsServices.dll": {}
+ }
+ },
+ "Microsoft.Extensions.Logging/6.0.0": {
+ "dependencies": {
+ "Microsoft.Extensions.DependencyInjection": "6.0.0",
+ "Microsoft.Extensions.DependencyInjection.Abstractions": "6.0.0",
+ "Microsoft.Extensions.Logging.Abstractions": "6.0.0",
+ "Microsoft.Extensions.Options": "6.0.0",
+ "System.Diagnostics.DiagnosticSource": "6.0.0"
+ },
+ "runtime": {
+ "lib/netstandard2.1/Microsoft.Extensions.Logging.dll": {
+ "assemblyVersion": "6.0.0.0",
+ "fileVersion": "6.0.21.52210"
+ }
+ },
+ "compile": {
+ "lib/netstandard2.1/Microsoft.Extensions.Logging.dll": {}
+ }
+ },
+ "Microsoft.Extensions.Logging.Abstractions/6.0.0": {
+ "dependencies": {
+ "System.Buffers": "4.5.1",
+ "System.Memory": "4.5.4"
+ },
+ "runtime": {
+ "lib/netstandard2.0/Microsoft.Extensions.Logging.Abstractions.dll": {
+ "assemblyVersion": "6.0.0.0",
+ "fileVersion": "6.0.21.52210"
+ }
+ },
+ "compile": {
+ "lib/netstandard2.0/Microsoft.Extensions.Logging.Abstractions.dll": {}
+ }
+ },
+ "Microsoft.Extensions.Logging.Configuration/6.0.0": {
+ "dependencies": {
+ "Microsoft.Extensions.Configuration": "6.0.0",
+ "Microsoft.Extensions.Configuration.Abstractions": "6.0.0",
+ "Microsoft.Extensions.Configuration.Binder": "6.0.0",
+ "Microsoft.Extensions.DependencyInjection.Abstractions": "6.0.0",
+ "Microsoft.Extensions.Logging": "6.0.0",
+ "Microsoft.Extensions.Logging.Abstractions": "6.0.0",
+ "Microsoft.Extensions.Options": "6.0.0",
+ "Microsoft.Extensions.Options.ConfigurationExtensions": "6.0.0"
+ },
+ "runtime": {
+ "lib/netstandard2.0/Microsoft.Extensions.Logging.Configuration.dll": {
+ "assemblyVersion": "6.0.0.0",
+ "fileVersion": "6.0.21.52210"
+ }
+ },
+ "compile": {
+ "lib/netstandard2.0/Microsoft.Extensions.Logging.Configuration.dll": {}
+ }
+ },
+ "Microsoft.Extensions.Logging.Console/6.0.0": {
+ "dependencies": {
+ "Microsoft.Extensions.DependencyInjection.Abstractions": "6.0.0",
+ "Microsoft.Extensions.Logging": "6.0.0",
+ "Microsoft.Extensions.Logging.Abstractions": "6.0.0",
+ "Microsoft.Extensions.Logging.Configuration": "6.0.0",
+ "Microsoft.Extensions.Options": "6.0.0",
+ "System.Text.Json": "6.0.0"
+ },
+ "runtime": {
+ "lib/netcoreapp3.1/Microsoft.Extensions.Logging.Console.dll": {
+ "assemblyVersion": "6.0.0.0",
+ "fileVersion": "6.0.21.52210"
+ }
+ },
+ "compile": {
+ "lib/netcoreapp3.1/Microsoft.Extensions.Logging.Console.dll": {}
+ }
+ },
+ "Microsoft.Extensions.Logging.Debug/6.0.0": {
+ "dependencies": {
+ "Microsoft.Extensions.DependencyInjection.Abstractions": "6.0.0",
+ "Microsoft.Extensions.Logging": "6.0.0",
+ "Microsoft.Extensions.Logging.Abstractions": "6.0.0"
+ },
+ "runtime": {
+ "lib/netstandard2.0/Microsoft.Extensions.Logging.Debug.dll": {
+ "assemblyVersion": "6.0.0.0",
+ "fileVersion": "6.0.21.52210"
+ }
+ },
+ "compile": {
+ "lib/netstandard2.0/Microsoft.Extensions.Logging.Debug.dll": {}
+ }
+ },
+ "Microsoft.Extensions.Logging.EventLog/6.0.0": {
+ "dependencies": {
+ "Microsoft.Extensions.DependencyInjection.Abstractions": "6.0.0",
+ "Microsoft.Extensions.Logging": "6.0.0",
+ "Microsoft.Extensions.Logging.Abstractions": "6.0.0",
+ "Microsoft.Extensions.Options": "6.0.0",
+ "System.Diagnostics.EventLog": "6.0.0"
+ },
+ "runtime": {
+ "lib/netstandard2.0/Microsoft.Extensions.Logging.EventLog.dll": {
+ "assemblyVersion": "6.0.0.0",
+ "fileVersion": "6.0.21.52210"
+ }
+ },
+ "compile": {
+ "lib/netstandard2.0/Microsoft.Extensions.Logging.EventLog.dll": {}
+ }
+ },
+ "Microsoft.Extensions.Logging.EventSource/6.0.0": {
+ "dependencies": {
+ "Microsoft.Extensions.DependencyInjection.Abstractions": "6.0.0",
+ "Microsoft.Extensions.Logging": "6.0.0",
+ "Microsoft.Extensions.Logging.Abstractions": "6.0.0",
+ "Microsoft.Extensions.Options": "6.0.0",
+ "Microsoft.Extensions.Primitives": "6.0.0",
+ "System.Runtime.CompilerServices.Unsafe": "6.0.0",
+ "System.Text.Json": "6.0.0"
+ },
+ "runtime": {
+ "lib/netcoreapp3.1/Microsoft.Extensions.Logging.EventSource.dll": {
+ "assemblyVersion": "6.0.0.0",
+ "fileVersion": "6.0.21.52210"
+ }
+ },
+ "compile": {
+ "lib/netcoreapp3.1/Microsoft.Extensions.Logging.EventSource.dll": {}
+ }
+ },
"Microsoft.Extensions.Options/6.0.0": {
"dependencies": {
"Microsoft.Extensions.DependencyInjection.Abstractions": "6.0.0",
@@ -459,6 +799,7 @@
"lib/netcoreapp3.1/Microsoft.Extensions.Primitives.dll": {}
}
},
+ "Microsoft.NETCore.Platforms/5.0.0": {},
"Microsoft.OpenApi/1.2.3": {
"runtime": {
"lib/netstandard2.0/Microsoft.OpenApi.dll": {
@@ -471,6 +812,12 @@
}
},
"Microsoft.VisualStudio.Azure.Containers.Tools.Targets/1.11.1": {},
+ "Microsoft.Win32.Registry/5.0.0": {
+ "dependencies": {
+ "System.Security.AccessControl": "5.0.0",
+ "System.Security.Principal.Windows": "5.0.0"
+ }
+ },
"Newtonsoft.Json/13.0.1": {
"runtime": {
"lib/netstandard2.0/Newtonsoft.Json.dll": {
@@ -496,12 +843,12 @@
"lib/netstandard2.0/Newtonsoft.Json.Bson.dll": {}
}
},
- "Swashbuckle.AspNetCore/5.6.3": {
+ "Swashbuckle.AspNetCore/6.2.3": {
"dependencies": {
"Microsoft.Extensions.ApiDescription.Server": "3.0.0",
"Swashbuckle.AspNetCore.Swagger": "6.2.3",
"Swashbuckle.AspNetCore.SwaggerGen": "6.2.3",
- "Swashbuckle.AspNetCore.SwaggerUI": "5.6.3"
+ "Swashbuckle.AspNetCore.SwaggerUI": "6.2.3"
}
},
"Swashbuckle.AspNetCore.Newtonsoft/6.2.3": {
@@ -547,18 +894,63 @@
"lib/net5.0/Swashbuckle.AspNetCore.SwaggerGen.dll": {}
}
},
- "Swashbuckle.AspNetCore.SwaggerUI/5.6.3": {
+ "Swashbuckle.AspNetCore.SwaggerUI/6.2.3": {
"runtime": {
- "lib/netcoreapp3.0/Swashbuckle.AspNetCore.SwaggerUI.dll": {
- "assemblyVersion": "5.6.3.0",
- "fileVersion": "5.6.3.0"
+ "lib/net5.0/Swashbuckle.AspNetCore.SwaggerUI.dll": {
+ "assemblyVersion": "6.2.3.0",
+ "fileVersion": "6.2.3.0"
}
},
"compile": {
- "lib/netcoreapp3.0/Swashbuckle.AspNetCore.SwaggerUI.dll": {}
+ "lib/net5.0/Swashbuckle.AspNetCore.SwaggerUI.dll": {}
}
},
+ "System.Buffers/4.5.1": {},
"System.ComponentModel.Annotations/5.0.0": {},
+ "System.Diagnostics.DiagnosticSource/6.0.0": {
+ "dependencies": {
+ "System.Runtime.CompilerServices.Unsafe": "6.0.0"
+ },
+ "runtime": {
+ "lib/net5.0/System.Diagnostics.DiagnosticSource.dll": {
+ "assemblyVersion": "6.0.0.0",
+ "fileVersion": "6.0.21.52210"
+ }
+ },
+ "compile": {
+ "lib/net5.0/System.Diagnostics.DiagnosticSource.dll": {}
+ }
+ },
+ "System.Diagnostics.EventLog/6.0.0": {
+ "dependencies": {
+ "Microsoft.Win32.Registry": "5.0.0",
+ "System.Security.Principal.Windows": "5.0.0"
+ },
+ "runtime": {
+ "lib/netcoreapp3.1/System.Diagnostics.EventLog.dll": {
+ "assemblyVersion": "6.0.0.0",
+ "fileVersion": "6.0.21.52210"
+ }
+ },
+ "runtimeTargets": {
+ "runtimes/win/lib/netcoreapp3.1/System.Diagnostics.EventLog.Messages.dll": {
+ "rid": "win",
+ "assetType": "runtime",
+ "assemblyVersion": "6.0.0.0",
+ "fileVersion": "0.0.0.0"
+ },
+ "runtimes/win/lib/netcoreapp3.1/System.Diagnostics.EventLog.dll": {
+ "rid": "win",
+ "assetType": "runtime",
+ "assemblyVersion": "6.0.0.0",
+ "fileVersion": "6.0.21.52210"
+ }
+ },
+ "compile": {
+ "lib/netcoreapp3.1/System.Diagnostics.EventLog.dll": {}
+ }
+ },
+ "System.Memory/4.5.4": {},
"System.Runtime.CompilerServices.Unsafe/6.0.0": {
"runtime": {
"lib/netcoreapp3.1/System.Runtime.CompilerServices.Unsafe.dll": {
@@ -570,6 +962,64 @@
"lib/netcoreapp3.1/System.Runtime.CompilerServices.Unsafe.dll": {}
}
},
+ "System.Security.AccessControl/5.0.0": {
+ "dependencies": {
+ "Microsoft.NETCore.Platforms": "5.0.0",
+ "System.Security.Principal.Windows": "5.0.0"
+ }
+ },
+ "System.Security.Principal.Windows/5.0.0": {},
+ "System.ServiceProcess.ServiceController/6.0.0": {
+ "dependencies": {
+ "System.Diagnostics.EventLog": "6.0.0"
+ },
+ "runtime": {
+ "lib/netcoreapp3.1/System.ServiceProcess.ServiceController.dll": {
+ "assemblyVersion": "6.0.0.0",
+ "fileVersion": "6.0.21.52210"
+ }
+ },
+ "runtimeTargets": {
+ "runtimes/win/lib/netcoreapp3.1/System.ServiceProcess.ServiceController.dll": {
+ "rid": "win",
+ "assetType": "runtime",
+ "assemblyVersion": "6.0.0.0",
+ "fileVersion": "6.0.21.52210"
+ }
+ },
+ "compile": {
+ "lib/netcoreapp3.1/System.ServiceProcess.ServiceController.dll": {}
+ }
+ },
+ "System.Text.Encodings.Web/6.0.0": {
+ "dependencies": {
+ "System.Runtime.CompilerServices.Unsafe": "6.0.0"
+ },
+ "runtime": {
+ "lib/netcoreapp3.1/System.Text.Encodings.Web.dll": {
+ "assemblyVersion": "6.0.0.0",
+ "fileVersion": "6.0.21.52210"
+ }
+ },
+ "compile": {
+ "lib/netcoreapp3.1/System.Text.Encodings.Web.dll": {}
+ }
+ },
+ "System.Text.Json/6.0.0": {
+ "dependencies": {
+ "System.Runtime.CompilerServices.Unsafe": "6.0.0",
+ "System.Text.Encodings.Web": "6.0.0"
+ },
+ "runtime": {
+ "lib/netcoreapp3.1/System.Text.Json.dll": {
+ "assemblyVersion": "6.0.0.0",
+ "fileVersion": "6.0.21.52210"
+ }
+ },
+ "compile": {
+ "lib/netcoreapp3.1/System.Text.Json.dll": {}
+ }
+ },
"Microsoft.AspNetCore.Antiforgery/5.0.0.0": {
"compile": {
"Microsoft.AspNetCore.Antiforgery.dll": {}
@@ -1008,231 +1458,117 @@
},
"compileOnly": true
},
- "Microsoft.AspNetCore.SignalR.Protocols.Json/5.0.0.0": {
- "compile": {
- "Microsoft.AspNetCore.SignalR.Protocols.Json.dll": {}
- },
- "compileOnly": true
- },
- "Microsoft.AspNetCore.StaticFiles/5.0.0.0": {
- "compile": {
- "Microsoft.AspNetCore.StaticFiles.dll": {}
- },
- "compileOnly": true
- },
- "Microsoft.AspNetCore.WebSockets/5.0.0.0": {
- "compile": {
- "Microsoft.AspNetCore.WebSockets.dll": {}
- },
- "compileOnly": true
- },
- "Microsoft.AspNetCore.WebUtilities/5.0.0.0": {
- "compile": {
- "Microsoft.AspNetCore.WebUtilities.dll": {}
- },
- "compileOnly": true
- },
- "Microsoft.CSharp.Reference/5.0.0.0": {
- "compile": {
- "Microsoft.CSharp.dll": {}
- },
- "compileOnly": true
- },
- "Microsoft.Extensions.Caching.Abstractions/5.0.0.0": {
- "compile": {
- "Microsoft.Extensions.Caching.Abstractions.dll": {}
- },
- "compileOnly": true
- },
- "Microsoft.Extensions.Caching.Memory/5.0.0.0": {
- "compile": {
- "Microsoft.Extensions.Caching.Memory.dll": {}
- },
- "compileOnly": true
- },
- "Microsoft.Extensions.Configuration.CommandLine/5.0.0.0": {
- "compile": {
- "Microsoft.Extensions.Configuration.CommandLine.dll": {}
- },
- "compileOnly": true
- },
- "Microsoft.Extensions.Configuration/5.0.0.0": {
- "compile": {
- "Microsoft.Extensions.Configuration.dll": {}
- },
- "compileOnly": true
- },
- "Microsoft.Extensions.Configuration.EnvironmentVariables/5.0.0.0": {
- "compile": {
- "Microsoft.Extensions.Configuration.EnvironmentVariables.dll": {}
- },
- "compileOnly": true
- },
- "Microsoft.Extensions.Configuration.FileExtensions/5.0.0.0": {
- "compile": {
- "Microsoft.Extensions.Configuration.FileExtensions.dll": {}
- },
- "compileOnly": true
- },
- "Microsoft.Extensions.Configuration.Ini/5.0.0.0": {
- "compile": {
- "Microsoft.Extensions.Configuration.Ini.dll": {}
- },
- "compileOnly": true
- },
- "Microsoft.Extensions.Configuration.Json/5.0.0.0": {
- "compile": {
- "Microsoft.Extensions.Configuration.Json.dll": {}
- },
- "compileOnly": true
- },
- "Microsoft.Extensions.Configuration.KeyPerFile/5.0.0.0": {
- "compile": {
- "Microsoft.Extensions.Configuration.KeyPerFile.dll": {}
- },
- "compileOnly": true
- },
- "Microsoft.Extensions.Configuration.UserSecrets/5.0.0.0": {
- "compile": {
- "Microsoft.Extensions.Configuration.UserSecrets.dll": {}
- },
- "compileOnly": true
- },
- "Microsoft.Extensions.Configuration.Xml/5.0.0.0": {
- "compile": {
- "Microsoft.Extensions.Configuration.Xml.dll": {}
- },
- "compileOnly": true
- },
- "Microsoft.Extensions.DependencyInjection/5.0.0.0": {
- "compile": {
- "Microsoft.Extensions.DependencyInjection.dll": {}
- },
- "compileOnly": true
- },
- "Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions/5.0.0.0": {
- "compile": {
- "Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions.dll": {}
- },
- "compileOnly": true
- },
- "Microsoft.Extensions.Diagnostics.HealthChecks/5.0.0.0": {
- "compile": {
- "Microsoft.Extensions.Diagnostics.HealthChecks.dll": {}
- },
- "compileOnly": true
- },
- "Microsoft.Extensions.FileProviders.Abstractions/5.0.0.0": {
+ "Microsoft.AspNetCore.SignalR.Protocols.Json/5.0.0.0": {
"compile": {
- "Microsoft.Extensions.FileProviders.Abstractions.dll": {}
+ "Microsoft.AspNetCore.SignalR.Protocols.Json.dll": {}
},
"compileOnly": true
},
- "Microsoft.Extensions.FileProviders.Composite/5.0.0.0": {
+ "Microsoft.AspNetCore.StaticFiles/5.0.0.0": {
"compile": {
- "Microsoft.Extensions.FileProviders.Composite.dll": {}
+ "Microsoft.AspNetCore.StaticFiles.dll": {}
},
"compileOnly": true
},
- "Microsoft.Extensions.FileProviders.Embedded/5.0.0.0": {
+ "Microsoft.AspNetCore.WebSockets/5.0.0.0": {
"compile": {
- "Microsoft.Extensions.FileProviders.Embedded.dll": {}
+ "Microsoft.AspNetCore.WebSockets.dll": {}
},
"compileOnly": true
},
- "Microsoft.Extensions.FileProviders.Physical/5.0.0.0": {
+ "Microsoft.AspNetCore.WebUtilities/5.0.0.0": {
"compile": {
- "Microsoft.Extensions.FileProviders.Physical.dll": {}
+ "Microsoft.AspNetCore.WebUtilities.dll": {}
},
"compileOnly": true
},
- "Microsoft.Extensions.FileSystemGlobbing/5.0.0.0": {
+ "Microsoft.CSharp.Reference/5.0.0.0": {
"compile": {
- "Microsoft.Extensions.FileSystemGlobbing.dll": {}
+ "Microsoft.CSharp.dll": {}
},
"compileOnly": true
},
- "Microsoft.Extensions.Hosting.Abstractions/5.0.0.0": {
+ "Microsoft.Extensions.Caching.Abstractions/5.0.0.0": {
"compile": {
- "Microsoft.Extensions.Hosting.Abstractions.dll": {}
+ "Microsoft.Extensions.Caching.Abstractions.dll": {}
},
"compileOnly": true
},
- "Microsoft.Extensions.Hosting/5.0.0.0": {
+ "Microsoft.Extensions.Caching.Memory/5.0.0.0": {
"compile": {
- "Microsoft.Extensions.Hosting.dll": {}
+ "Microsoft.Extensions.Caching.Memory.dll": {}
},
"compileOnly": true
},
- "Microsoft.Extensions.Http/5.0.0.0": {
+ "Microsoft.Extensions.Configuration.Ini/5.0.0.0": {
"compile": {
- "Microsoft.Extensions.Http.dll": {}
+ "Microsoft.Extensions.Configuration.Ini.dll": {}
},
"compileOnly": true
},
- "Microsoft.Extensions.Identity.Core/5.0.0.0": {
+ "Microsoft.Extensions.Configuration.KeyPerFile/5.0.0.0": {
"compile": {
- "Microsoft.Extensions.Identity.Core.dll": {}
+ "Microsoft.Extensions.Configuration.KeyPerFile.dll": {}
},
"compileOnly": true
},
- "Microsoft.Extensions.Identity.Stores/5.0.0.0": {
+ "Microsoft.Extensions.Configuration.Xml/5.0.0.0": {
"compile": {
- "Microsoft.Extensions.Identity.Stores.dll": {}
+ "Microsoft.Extensions.Configuration.Xml.dll": {}
},
"compileOnly": true
},
- "Microsoft.Extensions.Localization.Abstractions/5.0.0.0": {
+ "Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions/5.0.0.0": {
"compile": {
- "Microsoft.Extensions.Localization.Abstractions.dll": {}
+ "Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions.dll": {}
},
"compileOnly": true
},
- "Microsoft.Extensions.Localization/5.0.0.0": {
+ "Microsoft.Extensions.Diagnostics.HealthChecks/5.0.0.0": {
"compile": {
- "Microsoft.Extensions.Localization.dll": {}
+ "Microsoft.Extensions.Diagnostics.HealthChecks.dll": {}
},
"compileOnly": true
},
- "Microsoft.Extensions.Logging.Abstractions/5.0.0.0": {
+ "Microsoft.Extensions.FileProviders.Composite/5.0.0.0": {
"compile": {
- "Microsoft.Extensions.Logging.Abstractions.dll": {}
+ "Microsoft.Extensions.FileProviders.Composite.dll": {}
},
"compileOnly": true
},
- "Microsoft.Extensions.Logging.Configuration/5.0.0.0": {
+ "Microsoft.Extensions.FileProviders.Embedded/5.0.0.0": {
"compile": {
- "Microsoft.Extensions.Logging.Configuration.dll": {}
+ "Microsoft.Extensions.FileProviders.Embedded.dll": {}
},
"compileOnly": true
},
- "Microsoft.Extensions.Logging.Console/5.0.0.0": {
+ "Microsoft.Extensions.Http/5.0.0.0": {
"compile": {
- "Microsoft.Extensions.Logging.Console.dll": {}
+ "Microsoft.Extensions.Http.dll": {}
},
"compileOnly": true
},
- "Microsoft.Extensions.Logging.Debug/5.0.0.0": {
+ "Microsoft.Extensions.Identity.Core/5.0.0.0": {
"compile": {
- "Microsoft.Extensions.Logging.Debug.dll": {}
+ "Microsoft.Extensions.Identity.Core.dll": {}
},
"compileOnly": true
},
- "Microsoft.Extensions.Logging/5.0.0.0": {
+ "Microsoft.Extensions.Identity.Stores/5.0.0.0": {
"compile": {
- "Microsoft.Extensions.Logging.dll": {}
+ "Microsoft.Extensions.Identity.Stores.dll": {}
},
"compileOnly": true
},
- "Microsoft.Extensions.Logging.EventLog/5.0.0.0": {
+ "Microsoft.Extensions.Localization.Abstractions/5.0.0.0": {
"compile": {
- "Microsoft.Extensions.Logging.EventLog.dll": {}
+ "Microsoft.Extensions.Localization.Abstractions.dll": {}
},
"compileOnly": true
},
- "Microsoft.Extensions.Logging.EventSource/5.0.0.0": {
+ "Microsoft.Extensions.Localization/5.0.0.0": {
"compile": {
- "Microsoft.Extensions.Logging.EventSource.dll": {}
+ "Microsoft.Extensions.Localization.dll": {}
},
"compileOnly": true
},
@@ -1284,7 +1620,7 @@
},
"compileOnly": true
},
- "Microsoft.Win32.Registry/5.0.0.0": {
+ "Microsoft.Win32.Registry.Reference/5.0.0.0": {
"compile": {
"Microsoft.Win32.Registry.dll": {}
},
@@ -1308,7 +1644,7 @@
},
"compileOnly": true
},
- "System.Buffers/5.0.0.0": {
+ "System.Buffers.Reference/5.0.0.0": {
"compile": {
"System.Buffers.dll": {}
},
@@ -1428,18 +1764,6 @@
},
"compileOnly": true
},
- "System.Diagnostics.DiagnosticSource/5.0.0.0": {
- "compile": {
- "System.Diagnostics.DiagnosticSource.dll": {}
- },
- "compileOnly": true
- },
- "System.Diagnostics.EventLog/5.0.0.0": {
- "compile": {
- "System.Diagnostics.EventLog.dll": {}
- },
- "compileOnly": true
- },
"System.Diagnostics.FileVersionInfo/5.0.0.0": {
"compile": {
"System.Diagnostics.FileVersionInfo.dll": {}
@@ -1638,7 +1962,7 @@
},
"compileOnly": true
},
- "System.Memory/5.0.0.0": {
+ "System.Memory.Reference/5.0.0.0": {
"compile": {
"System.Memory.dll": {}
},
@@ -1926,7 +2250,7 @@
},
"compileOnly": true
},
- "System.Security.AccessControl/5.0.0.0": {
+ "System.Security.AccessControl.Reference/5.0.0.0": {
"compile": {
"System.Security.AccessControl.dll": {}
},
@@ -1998,7 +2322,7 @@
},
"compileOnly": true
},
- "System.Security.Principal.Windows/5.0.0.0": {
+ "System.Security.Principal.Windows.Reference/5.0.0.0": {
"compile": {
"System.Security.Principal.Windows.dll": {}
},
@@ -2040,18 +2364,6 @@
},
"compileOnly": true
},
- "System.Text.Encodings.Web/5.0.0.0": {
- "compile": {
- "System.Text.Encodings.Web.dll": {}
- },
- "compileOnly": true
- },
- "System.Text.Json/5.0.0.0": {
- "compile": {
- "System.Text.Json.dll": {}
- },
- "compileOnly": true
- },
"System.Text.RegularExpressions/5.0.0.0": {
"compile": {
"System.Text.RegularExpressions.dll": {}
@@ -2256,6 +2568,13 @@
"path": "microsoft.extensions.apidescription.server/3.0.0",
"hashPath": "microsoft.extensions.apidescription.server.3.0.0.nupkg.sha512"
},
+ "Microsoft.Extensions.Configuration/6.0.0": {
+ "type": "package",
+ "serviceable": true,
+ "sha512": "sha512-tq2wXyh3fL17EMF2bXgRhU7JrbO3on93MRKYxzz4JzzvuGSA1l0W3GI9/tl8EO89TH+KWEymP7bcFway6z9fXg==",
+ "path": "microsoft.extensions.configuration/6.0.0",
+ "hashPath": "microsoft.extensions.configuration.6.0.0.nupkg.sha512"
+ },
"Microsoft.Extensions.Configuration.Abstractions/6.0.0": {
"type": "package",
"serviceable": true,
@@ -2270,6 +2589,48 @@
"path": "microsoft.extensions.configuration.binder/6.0.0",
"hashPath": "microsoft.extensions.configuration.binder.6.0.0.nupkg.sha512"
},
+ "Microsoft.Extensions.Configuration.CommandLine/6.0.0": {
+ "type": "package",
+ "serviceable": true,
+ "sha512": "sha512-3nL1qCkZ1Oxx14ZTzgo4MmlO7tso7F+TtMZAY2jUAtTLyAcDp+EDjk3RqafoKiNaePyPvvlleEcBxh3b2Hzl1g==",
+ "path": "microsoft.extensions.configuration.commandline/6.0.0",
+ "hashPath": "microsoft.extensions.configuration.commandline.6.0.0.nupkg.sha512"
+ },
+ "Microsoft.Extensions.Configuration.EnvironmentVariables/6.0.0": {
+ "type": "package",
+ "serviceable": true,
+ "sha512": "sha512-DjYkzqvhiHCq38LW71PcIxXk6nhtV6VySP9yDcSO0goPl7YCU1VG1f2Wbgy58lkA10pWkjHCblZPUyboCB93ZA==",
+ "path": "microsoft.extensions.configuration.environmentvariables/6.0.0",
+ "hashPath": "microsoft.extensions.configuration.environmentvariables.6.0.0.nupkg.sha512"
+ },
+ "Microsoft.Extensions.Configuration.FileExtensions/6.0.0": {
+ "type": "package",
+ "serviceable": true,
+ "sha512": "sha512-V4Dth2cYMZpw3HhGw9XUDIijpI6gN+22LDt0AhufIgOppCUfpWX4483OmN+dFXRJkJLc8Tv0Q8QK+1ingT2+KQ==",
+ "path": "microsoft.extensions.configuration.fileextensions/6.0.0",
+ "hashPath": "microsoft.extensions.configuration.fileextensions.6.0.0.nupkg.sha512"
+ },
+ "Microsoft.Extensions.Configuration.Json/6.0.0": {
+ "type": "package",
+ "serviceable": true,
+ "sha512": "sha512-GJGery6QytCzS/BxJ96klgG9in3uH26KcUBbiVG/coNDXCRq6LGVVlUT4vXq34KPuM+R2av+LeYdX9h4IZOCUg==",
+ "path": "microsoft.extensions.configuration.json/6.0.0",
+ "hashPath": "microsoft.extensions.configuration.json.6.0.0.nupkg.sha512"
+ },
+ "Microsoft.Extensions.Configuration.UserSecrets/6.0.0": {
+ "type": "package",
+ "serviceable": true,
+ "sha512": "sha512-lB0Hb2V4+RUHy+LjEcqEr4EcV4RWc9EnjAV2GdtWQEdljQX+R4hGREftI7sInU9okP93pDrJiaj6QUJ6ZsslOA==",
+ "path": "microsoft.extensions.configuration.usersecrets/6.0.0",
+ "hashPath": "microsoft.extensions.configuration.usersecrets.6.0.0.nupkg.sha512"
+ },
+ "Microsoft.Extensions.DependencyInjection/6.0.0": {
+ "type": "package",
+ "serviceable": true,
+ "sha512": "sha512-k6PWQMuoBDGGHOQTtyois2u4AwyVcIwL2LaSLlTZQm2CYcJ1pxbt6jfAnpWmzENA/wfrYRI/X9DTLoUkE4AsLw==",
+ "path": "microsoft.extensions.dependencyinjection/6.0.0",
+ "hashPath": "microsoft.extensions.dependencyinjection.6.0.0.nupkg.sha512"
+ },
"Microsoft.Extensions.DependencyInjection.Abstractions/6.0.0": {
"type": "package",
"serviceable": true,
@@ -2277,6 +2638,104 @@
"path": "microsoft.extensions.dependencyinjection.abstractions/6.0.0",
"hashPath": "microsoft.extensions.dependencyinjection.abstractions.6.0.0.nupkg.sha512"
},
+ "Microsoft.Extensions.FileProviders.Abstractions/6.0.0": {
+ "type": "package",
+ "serviceable": true,
+ "sha512": "sha512-0pd4/fho0gC12rQswaGQxbU34jOS1TPS8lZPpkFCH68ppQjHNHYle9iRuHeev1LhrJ94YPvzcRd8UmIuFk23Qw==",
+ "path": "microsoft.extensions.fileproviders.abstractions/6.0.0",
+ "hashPath": "microsoft.extensions.fileproviders.abstractions.6.0.0.nupkg.sha512"
+ },
+ "Microsoft.Extensions.FileProviders.Physical/6.0.0": {
+ "type": "package",
+ "serviceable": true,
+ "sha512": "sha512-QvkL7l0nM8udt3gfyu0Vw8bbCXblxaKOl7c2oBfgGy4LCURRaL9XWZX1FWJrQc43oMokVneVxH38iz+bY1sbhg==",
+ "path": "microsoft.extensions.fileproviders.physical/6.0.0",
+ "hashPath": "microsoft.extensions.fileproviders.physical.6.0.0.nupkg.sha512"
+ },
+ "Microsoft.Extensions.FileSystemGlobbing/6.0.0": {
+ "type": "package",
+ "serviceable": true,
+ "sha512": "sha512-ip8jnL1aPiaPeKINCqaTEbvBFDmVx9dXQEBZ2HOBRXPD1eabGNqP/bKlsIcp7U2lGxiXd5xIhoFcmY8nM4Hdiw==",
+ "path": "microsoft.extensions.filesystemglobbing/6.0.0",
+ "hashPath": "microsoft.extensions.filesystemglobbing.6.0.0.nupkg.sha512"
+ },
+ "Microsoft.Extensions.Hosting/6.0.0": {
+ "type": "package",
+ "serviceable": true,
+ "sha512": "sha512-M8VzD0ni5VarIRT8njnwK4K2WSAo0kZH4Zc3mKcSGkP4CjDZ91T9ZEFmmwhmo4z7x8AFq+tW0WFi9wX+K2cxkQ==",
+ "path": "microsoft.extensions.hosting/6.0.0",
+ "hashPath": "microsoft.extensions.hosting.6.0.0.nupkg.sha512"
+ },
+ "Microsoft.Extensions.Hosting.Abstractions/6.0.0": {
+ "type": "package",
+ "serviceable": true,
+ "sha512": "sha512-GcT5l2CYXL6Sa27KCSh0TixsRfADUgth+ojQSD5EkzisZxmGFh7CwzkcYuGwvmXLjr27uWRNrJ2vuuEjMhU05Q==",
+ "path": "microsoft.extensions.hosting.abstractions/6.0.0",
+ "hashPath": "microsoft.extensions.hosting.abstractions.6.0.0.nupkg.sha512"
+ },
+ "Microsoft.Extensions.Hosting.Systemd/6.0.0": {
+ "type": "package",
+ "serviceable": true,
+ "sha512": "sha512-twbp6BFlS64A7t1/2L/2AFx61bQc66WEb2Ioa3+pvdya8IhsWb7Qiy476UrJ5oY5pALZWDPjQdOTOLcSK/r3lg==",
+ "path": "microsoft.extensions.hosting.systemd/6.0.0",
+ "hashPath": "microsoft.extensions.hosting.systemd.6.0.0.nupkg.sha512"
+ },
+ "Microsoft.Extensions.Hosting.WindowsServices/6.0.0": {
+ "type": "package",
+ "serviceable": true,
+ "sha512": "sha512-qrYcNoYOI7AouQf0edY1NotePLNfz6wwLfjcEL5IQMXQm61k9glChzr7bt4I8uFelAHK8dYJPvCHEd6idxoXOw==",
+ "path": "microsoft.extensions.hosting.windowsservices/6.0.0",
+ "hashPath": "microsoft.extensions.hosting.windowsservices.6.0.0.nupkg.sha512"
+ },
+ "Microsoft.Extensions.Logging/6.0.0": {
+ "type": "package",
+ "serviceable": true,
+ "sha512": "sha512-eIbyj40QDg1NDz0HBW0S5f3wrLVnKWnDJ/JtZ+yJDFnDj90VoPuoPmFkeaXrtu+0cKm5GRAwoDf+dBWXK0TUdg==",
+ "path": "microsoft.extensions.logging/6.0.0",
+ "hashPath": "microsoft.extensions.logging.6.0.0.nupkg.sha512"
+ },
+ "Microsoft.Extensions.Logging.Abstractions/6.0.0": {
+ "type": "package",
+ "serviceable": true,
+ "sha512": "sha512-/HggWBbTwy8TgebGSX5DBZ24ndhzi93sHUBDvP1IxbZD7FDokYzdAr6+vbWGjw2XAfR2EJ1sfKUotpjHnFWPxA==",
+ "path": "microsoft.extensions.logging.abstractions/6.0.0",
+ "hashPath": "microsoft.extensions.logging.abstractions.6.0.0.nupkg.sha512"
+ },
+ "Microsoft.Extensions.Logging.Configuration/6.0.0": {
+ "type": "package",
+ "serviceable": true,
+ "sha512": "sha512-ZDskjagmBAbv+K8rYW9VhjPplhbOE63xUD0DiuydZJwt15dRyoqicYklLd86zzeintUc7AptDkHn+YhhYkYo8A==",
+ "path": "microsoft.extensions.logging.configuration/6.0.0",
+ "hashPath": "microsoft.extensions.logging.configuration.6.0.0.nupkg.sha512"
+ },
+ "Microsoft.Extensions.Logging.Console/6.0.0": {
+ "type": "package",
+ "serviceable": true,
+ "sha512": "sha512-gsqKzOEdsvq28QiXFxagmn1oRB9GeI5GgYCkoybZtQA0IUb7QPwf1WmN3AwJeNIsadTvIFQCiVK0OVIgKfOBGg==",
+ "path": "microsoft.extensions.logging.console/6.0.0",
+ "hashPath": "microsoft.extensions.logging.console.6.0.0.nupkg.sha512"
+ },
+ "Microsoft.Extensions.Logging.Debug/6.0.0": {
+ "type": "package",
+ "serviceable": true,
+ "sha512": "sha512-M9g/JixseSZATJE9tcMn9uzoD4+DbSglivFqVx8YkRJ7VVPmnvCEbOZ0AAaxsL1EKyI4cz07DXOOJExxNsUOHw==",
+ "path": "microsoft.extensions.logging.debug/6.0.0",
+ "hashPath": "microsoft.extensions.logging.debug.6.0.0.nupkg.sha512"
+ },
+ "Microsoft.Extensions.Logging.EventLog/6.0.0": {
+ "type": "package",
+ "serviceable": true,
+ "sha512": "sha512-rlo0RxlMd0WtLG3CHI0qOTp6fFn7MvQjlrCjucA31RqmiMFCZkF8CHNbe8O7tbBIyyoLGWB1he9CbaA5iyHthg==",
+ "path": "microsoft.extensions.logging.eventlog/6.0.0",
+ "hashPath": "microsoft.extensions.logging.eventlog.6.0.0.nupkg.sha512"
+ },
+ "Microsoft.Extensions.Logging.EventSource/6.0.0": {
+ "type": "package",
+ "serviceable": true,
+ "sha512": "sha512-BeDyyqt7nkm/nr+Gdk+L8n1tUT/u33VkbXAOesgYSNsxDM9hJ1NOBGoZfj9rCbeD2+9myElI6JOVVFmnzgeWQA==",
+ "path": "microsoft.extensions.logging.eventsource/6.0.0",
+ "hashPath": "microsoft.extensions.logging.eventsource.6.0.0.nupkg.sha512"
+ },
"Microsoft.Extensions.Options/6.0.0": {
"type": "package",
"serviceable": true,
@@ -2305,6 +2764,13 @@
"path": "microsoft.extensions.primitives/6.0.0",
"hashPath": "microsoft.extensions.primitives.6.0.0.nupkg.sha512"
},
+ "Microsoft.NETCore.Platforms/5.0.0": {
+ "type": "package",
+ "serviceable": true,
+ "sha512": "sha512-VyPlqzH2wavqquTcYpkIIAQ6WdenuKoFN0BdYBbCWsclXacSOHNQn66Gt4z5NBqEYW0FAPm5rlvki9ZiCij5xQ==",
+ "path": "microsoft.netcore.platforms/5.0.0",
+ "hashPath": "microsoft.netcore.platforms.5.0.0.nupkg.sha512"
+ },
"Microsoft.OpenApi/1.2.3": {
"type": "package",
"serviceable": true,
@@ -2319,6 +2785,13 @@
"path": "microsoft.visualstudio.azure.containers.tools.targets/1.11.1",
"hashPath": "microsoft.visualstudio.azure.containers.tools.targets.1.11.1.nupkg.sha512"
},
+ "Microsoft.Win32.Registry/5.0.0": {
+ "type": "package",
+ "serviceable": true,
+ "sha512": "sha512-dDoKi0PnDz31yAyETfRntsLArTlVAVzUzCIvvEDsDsucrl33Dl8pIJG06ePTJTI3tGpeyHS9Cq7Foc/s4EeKcg==",
+ "path": "microsoft.win32.registry/5.0.0",
+ "hashPath": "microsoft.win32.registry.5.0.0.nupkg.sha512"
+ },
"Newtonsoft.Json/13.0.1": {
"type": "package",
"serviceable": true,
@@ -2333,12 +2806,12 @@
"path": "newtonsoft.json.bson/1.0.2",
"hashPath": "newtonsoft.json.bson.1.0.2.nupkg.sha512"
},
- "Swashbuckle.AspNetCore/5.6.3": {
+ "Swashbuckle.AspNetCore/6.2.3": {
"type": "package",
"serviceable": true,
- "sha512": "sha512-UkL9GU0mfaA+7RwYjEaBFvAzL8qNQhNqAeV5uaWUu/Z+fVgvK9FHkGCpTXBqSQeIHuZaIElzxnLDdIqGzuCnVg==",
- "path": "swashbuckle.aspnetcore/5.6.3",
- "hashPath": "swashbuckle.aspnetcore.5.6.3.nupkg.sha512"
+ "sha512": "sha512-cnzQDn0Le+hInsw2SYwlOhOCPXpYi/szcvnyqZJ12v+QyrLBwAmWXBg6RIyHB18s/mLeywC+Rg2O9ndz0IUNYQ==",
+ "path": "swashbuckle.aspnetcore/6.2.3",
+ "hashPath": "swashbuckle.aspnetcore.6.2.3.nupkg.sha512"
},
"Swashbuckle.AspNetCore.Newtonsoft/6.2.3": {
"type": "package",
@@ -2361,12 +2834,19 @@
"path": "swashbuckle.aspnetcore.swaggergen/6.2.3",
"hashPath": "swashbuckle.aspnetcore.swaggergen.6.2.3.nupkg.sha512"
},
- "Swashbuckle.AspNetCore.SwaggerUI/5.6.3": {
+ "Swashbuckle.AspNetCore.SwaggerUI/6.2.3": {
+ "type": "package",
+ "serviceable": true,
+ "sha512": "sha512-bCRI87uKJVb4G+KURWm8LQrL64St04dEFZcF6gIM67Zc0Sr/N47EO83ybLMYOvfNdO1DCv8xwPcrz9J/VEhQ5g==",
+ "path": "swashbuckle.aspnetcore.swaggerui/6.2.3",
+ "hashPath": "swashbuckle.aspnetcore.swaggerui.6.2.3.nupkg.sha512"
+ },
+ "System.Buffers/4.5.1": {
"type": "package",
"serviceable": true,
- "sha512": "sha512-BPvcPxQRMsYZ3HnYmGKRWDwX4Wo29WHh14Q6B10BB8Yfbbcza+agOC2UrBFA1EuaZuOsFLbp6E2+mqVNF/Je8A==",
- "path": "swashbuckle.aspnetcore.swaggerui/5.6.3",
- "hashPath": "swashbuckle.aspnetcore.swaggerui.5.6.3.nupkg.sha512"
+ "sha512": "sha512-Rw7ijyl1qqRS0YQD/WycNst8hUUMgrMH4FCn1nNm27M4VxchZ1js3fVjQaANHO5f3sN4isvP4a+Met9Y4YomAg==",
+ "path": "system.buffers/4.5.1",
+ "hashPath": "system.buffers.4.5.1.nupkg.sha512"
},
"System.ComponentModel.Annotations/5.0.0": {
"type": "package",
@@ -2375,6 +2855,27 @@
"path": "system.componentmodel.annotations/5.0.0",
"hashPath": "system.componentmodel.annotations.5.0.0.nupkg.sha512"
},
+ "System.Diagnostics.DiagnosticSource/6.0.0": {
+ "type": "package",
+ "serviceable": true,
+ "sha512": "sha512-frQDfv0rl209cKm1lnwTgFPzNigy2EKk1BS3uAvHvlBVKe5cymGyHO+Sj+NLv5VF/AhHsqPIUUwya5oV4CHMUw==",
+ "path": "system.diagnostics.diagnosticsource/6.0.0",
+ "hashPath": "system.diagnostics.diagnosticsource.6.0.0.nupkg.sha512"
+ },
+ "System.Diagnostics.EventLog/6.0.0": {
+ "type": "package",
+ "serviceable": true,
+ "sha512": "sha512-lcyUiXTsETK2ALsZrX+nWuHSIQeazhqPphLfaRxzdGaG93+0kELqpgEHtwWOlQe7+jSFnKwaCAgL4kjeZCQJnw==",
+ "path": "system.diagnostics.eventlog/6.0.0",
+ "hashPath": "system.diagnostics.eventlog.6.0.0.nupkg.sha512"
+ },
+ "System.Memory/4.5.4": {
+ "type": "package",
+ "serviceable": true,
+ "sha512": "sha512-1MbJTHS1lZ4bS4FmsJjnuGJOu88ZzTT2rLvrhW7Ygic+pC0NWA+3hgAen0HRdsocuQXCkUTdFn9yHJJhsijDXw==",
+ "path": "system.memory/4.5.4",
+ "hashPath": "system.memory.4.5.4.nupkg.sha512"
+ },
"System.Runtime.CompilerServices.Unsafe/6.0.0": {
"type": "package",
"serviceable": true,
@@ -2382,6 +2883,41 @@
"path": "system.runtime.compilerservices.unsafe/6.0.0",
"hashPath": "system.runtime.compilerservices.unsafe.6.0.0.nupkg.sha512"
},
+ "System.Security.AccessControl/5.0.0": {
+ "type": "package",
+ "serviceable": true,
+ "sha512": "sha512-dagJ1mHZO3Ani8GH0PHpPEe/oYO+rVdbQjvjJkBRNQkX4t0r1iaeGn8+/ybkSLEan3/slM0t59SVdHzuHf2jmw==",
+ "path": "system.security.accesscontrol/5.0.0",
+ "hashPath": "system.security.accesscontrol.5.0.0.nupkg.sha512"
+ },
+ "System.Security.Principal.Windows/5.0.0": {
+ "type": "package",
+ "serviceable": true,
+ "sha512": "sha512-t0MGLukB5WAVU9bO3MGzvlGnyJPgUlcwerXn1kzBRjwLKixT96XV0Uza41W49gVd8zEMFu9vQEFlv0IOrytICA==",
+ "path": "system.security.principal.windows/5.0.0",
+ "hashPath": "system.security.principal.windows.5.0.0.nupkg.sha512"
+ },
+ "System.ServiceProcess.ServiceController/6.0.0": {
+ "type": "package",
+ "serviceable": true,
+ "sha512": "sha512-qMBvG8ZFbkXoe0Z5/D7FAAadfPkH2v7vSuh2xsLf3U6jNoejpIdeV18A0htiASsLK1CCAc/p59kaLXlt2yB1gw==",
+ "path": "system.serviceprocess.servicecontroller/6.0.0",
+ "hashPath": "system.serviceprocess.servicecontroller.6.0.0.nupkg.sha512"
+ },
+ "System.Text.Encodings.Web/6.0.0": {
+ "type": "package",
+ "serviceable": true,
+ "sha512": "sha512-Vg8eB5Tawm1IFqj4TVK1czJX89rhFxJo9ELqc/Eiq0eXy13RK00eubyU6TJE6y+GQXjyV5gSfiewDUZjQgSE0w==",
+ "path": "system.text.encodings.web/6.0.0",
+ "hashPath": "system.text.encodings.web.6.0.0.nupkg.sha512"
+ },
+ "System.Text.Json/6.0.0": {
+ "type": "package",
+ "serviceable": true,
+ "sha512": "sha512-zaJsHfESQvJ11vbXnNlkrR46IaMULk/gHxYsJphzSF+07kTjPHv+Oc14w6QEOfo3Q4hqLJgStUaYB9DBl0TmWg==",
+ "path": "system.text.json/6.0.0",
+ "hashPath": "system.text.json.6.0.0.nupkg.sha512"
+ },
"Microsoft.AspNetCore.Antiforgery/5.0.0.0": {
"type": "referenceassembly",
"serviceable": false,
@@ -2782,56 +3318,21 @@
"serviceable": false,
"sha512": ""
},
- "Microsoft.Extensions.Configuration.CommandLine/5.0.0.0": {
- "type": "referenceassembly",
- "serviceable": false,
- "sha512": ""
- },
- "Microsoft.Extensions.Configuration/5.0.0.0": {
- "type": "referenceassembly",
- "serviceable": false,
- "sha512": ""
- },
- "Microsoft.Extensions.Configuration.EnvironmentVariables/5.0.0.0": {
- "type": "referenceassembly",
- "serviceable": false,
- "sha512": ""
- },
- "Microsoft.Extensions.Configuration.FileExtensions/5.0.0.0": {
- "type": "referenceassembly",
- "serviceable": false,
- "sha512": ""
- },
"Microsoft.Extensions.Configuration.Ini/5.0.0.0": {
"type": "referenceassembly",
"serviceable": false,
"sha512": ""
},
- "Microsoft.Extensions.Configuration.Json/5.0.0.0": {
- "type": "referenceassembly",
- "serviceable": false,
- "sha512": ""
- },
"Microsoft.Extensions.Configuration.KeyPerFile/5.0.0.0": {
"type": "referenceassembly",
"serviceable": false,
"sha512": ""
},
- "Microsoft.Extensions.Configuration.UserSecrets/5.0.0.0": {
- "type": "referenceassembly",
- "serviceable": false,
- "sha512": ""
- },
"Microsoft.Extensions.Configuration.Xml/5.0.0.0": {
"type": "referenceassembly",
"serviceable": false,
"sha512": ""
},
- "Microsoft.Extensions.DependencyInjection/5.0.0.0": {
- "type": "referenceassembly",
- "serviceable": false,
- "sha512": ""
- },
"Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions/5.0.0.0": {
"type": "referenceassembly",
"serviceable": false,
@@ -2842,11 +3343,6 @@
"serviceable": false,
"sha512": ""
},
- "Microsoft.Extensions.FileProviders.Abstractions/5.0.0.0": {
- "type": "referenceassembly",
- "serviceable": false,
- "sha512": ""
- },
"Microsoft.Extensions.FileProviders.Composite/5.0.0.0": {
"type": "referenceassembly",
"serviceable": false,
@@ -2857,26 +3353,6 @@
"serviceable": false,
"sha512": ""
},
- "Microsoft.Extensions.FileProviders.Physical/5.0.0.0": {
- "type": "referenceassembly",
- "serviceable": false,
- "sha512": ""
- },
- "Microsoft.Extensions.FileSystemGlobbing/5.0.0.0": {
- "type": "referenceassembly",
- "serviceable": false,
- "sha512": ""
- },
- "Microsoft.Extensions.Hosting.Abstractions/5.0.0.0": {
- "type": "referenceassembly",
- "serviceable": false,
- "sha512": ""
- },
- "Microsoft.Extensions.Hosting/5.0.0.0": {
- "type": "referenceassembly",
- "serviceable": false,
- "sha512": ""
- },
"Microsoft.Extensions.Http/5.0.0.0": {
"type": "referenceassembly",
"serviceable": false,
@@ -2902,41 +3378,6 @@
"serviceable": false,
"sha512": ""
},
- "Microsoft.Extensions.Logging.Abstractions/5.0.0.0": {
- "type": "referenceassembly",
- "serviceable": false,
- "sha512": ""
- },
- "Microsoft.Extensions.Logging.Configuration/5.0.0.0": {
- "type": "referenceassembly",
- "serviceable": false,
- "sha512": ""
- },
- "Microsoft.Extensions.Logging.Console/5.0.0.0": {
- "type": "referenceassembly",
- "serviceable": false,
- "sha512": ""
- },
- "Microsoft.Extensions.Logging.Debug/5.0.0.0": {
- "type": "referenceassembly",
- "serviceable": false,
- "sha512": ""
- },
- "Microsoft.Extensions.Logging/5.0.0.0": {
- "type": "referenceassembly",
- "serviceable": false,
- "sha512": ""
- },
- "Microsoft.Extensions.Logging.EventLog/5.0.0.0": {
- "type": "referenceassembly",
- "serviceable": false,
- "sha512": ""
- },
- "Microsoft.Extensions.Logging.EventSource/5.0.0.0": {
- "type": "referenceassembly",
- "serviceable": false,
- "sha512": ""
- },
"Microsoft.Extensions.Logging.TraceSource/5.0.0.0": {
"type": "referenceassembly",
"serviceable": false,
@@ -2977,7 +3418,7 @@
"serviceable": false,
"sha512": ""
},
- "Microsoft.Win32.Registry/5.0.0.0": {
+ "Microsoft.Win32.Registry.Reference/5.0.0.0": {
"type": "referenceassembly",
"serviceable": false,
"sha512": ""
@@ -2997,7 +3438,7 @@
"serviceable": false,
"sha512": ""
},
- "System.Buffers/5.0.0.0": {
+ "System.Buffers.Reference/5.0.0.0": {
"type": "referenceassembly",
"serviceable": false,
"sha512": ""
@@ -3097,16 +3538,6 @@
"serviceable": false,
"sha512": ""
},
- "System.Diagnostics.DiagnosticSource/5.0.0.0": {
- "type": "referenceassembly",
- "serviceable": false,
- "sha512": ""
- },
- "System.Diagnostics.EventLog/5.0.0.0": {
- "type": "referenceassembly",
- "serviceable": false,
- "sha512": ""
- },
"System.Diagnostics.FileVersionInfo/5.0.0.0": {
"type": "referenceassembly",
"serviceable": false,
@@ -3272,7 +3703,7 @@
"serviceable": false,
"sha512": ""
},
- "System.Memory/5.0.0.0": {
+ "System.Memory.Reference/5.0.0.0": {
"type": "referenceassembly",
"serviceable": false,
"sha512": ""
@@ -3512,7 +3943,7 @@
"serviceable": false,
"sha512": ""
},
- "System.Security.AccessControl/5.0.0.0": {
+ "System.Security.AccessControl.Reference/5.0.0.0": {
"type": "referenceassembly",
"serviceable": false,
"sha512": ""
@@ -3572,7 +4003,7 @@
"serviceable": false,
"sha512": ""
},
- "System.Security.Principal.Windows/5.0.0.0": {
+ "System.Security.Principal.Windows.Reference/5.0.0.0": {
"type": "referenceassembly",
"serviceable": false,
"sha512": ""
@@ -3607,16 +4038,6 @@
"serviceable": false,
"sha512": ""
},
- "System.Text.Encodings.Web/5.0.0.0": {
- "type": "referenceassembly",
- "serviceable": false,
- "sha512": ""
- },
- "System.Text.Json/5.0.0.0": {
- "type": "referenceassembly",
- "serviceable": false,
- "sha512": ""
- },
"System.Text.RegularExpressions/5.0.0.0": {
"type": "referenceassembly",
"serviceable": false,
diff --git a/Build/WebApiPublish/DockerStudyApi.dll b/Build/WebApiPublish/DockerStudyApi.dll
index b5a3f78..a5c9b9c 100644
Binary files a/Build/WebApiPublish/DockerStudyApi.dll and b/Build/WebApiPublish/DockerStudyApi.dll differ
diff --git a/Build/WebApiPublish/DockerStudyApi.exe b/Build/WebApiPublish/DockerStudyApi.exe
index 9ddb936..eff05bb 100644
Binary files a/Build/WebApiPublish/DockerStudyApi.exe and b/Build/WebApiPublish/DockerStudyApi.exe differ
diff --git a/Build/WebApiPublish/DockerStudyApi.xml b/Build/WebApiPublish/DockerStudyApi.xml
index 2fedceb..95b7510 100644
--- a/Build/WebApiPublish/DockerStudyApi.xml
+++ b/Build/WebApiPublish/DockerStudyApi.xml
@@ -14,6 +14,11 @@
服务测试
+
+
+ 获取运行时信息
+
+
说明:泛型左右尖括号,不能写在注释里,会生成无效的xml
@@ -42,20 +47,41 @@
(仅支持字符串或Key=value两种形式)
+
+
+ 获取所有命令参数
+
+
获取环境变量
+
+
+ 获取AspNetCore环境变量
+ (以ASPNETCORE_开头)
+
+
+
+
+ 获取所有环境变量
+
+
获取配置项
-
+
获取所有配置项
+
+
+ 获取配置源
+
+
diff --git a/Build/WebApiPublish/Microsoft.Extensions.Configuration.CommandLine.dll b/Build/WebApiPublish/Microsoft.Extensions.Configuration.CommandLine.dll
new file mode 100644
index 0000000..24402a5
Binary files /dev/null and b/Build/WebApiPublish/Microsoft.Extensions.Configuration.CommandLine.dll differ
diff --git a/Build/WebApiPublish/Microsoft.Extensions.Configuration.EnvironmentVariables.dll b/Build/WebApiPublish/Microsoft.Extensions.Configuration.EnvironmentVariables.dll
new file mode 100644
index 0000000..dbaf507
Binary files /dev/null and b/Build/WebApiPublish/Microsoft.Extensions.Configuration.EnvironmentVariables.dll differ
diff --git a/Build/WebApiPublish/Microsoft.Extensions.Configuration.FileExtensions.dll b/Build/WebApiPublish/Microsoft.Extensions.Configuration.FileExtensions.dll
new file mode 100644
index 0000000..160814d
Binary files /dev/null and b/Build/WebApiPublish/Microsoft.Extensions.Configuration.FileExtensions.dll differ
diff --git a/Build/WebApiPublish/Microsoft.Extensions.Configuration.Json.dll b/Build/WebApiPublish/Microsoft.Extensions.Configuration.Json.dll
new file mode 100644
index 0000000..1c9ba24
Binary files /dev/null and b/Build/WebApiPublish/Microsoft.Extensions.Configuration.Json.dll differ
diff --git a/Build/WebApiPublish/Microsoft.Extensions.Configuration.UserSecrets.dll b/Build/WebApiPublish/Microsoft.Extensions.Configuration.UserSecrets.dll
new file mode 100644
index 0000000..34d10b0
Binary files /dev/null and b/Build/WebApiPublish/Microsoft.Extensions.Configuration.UserSecrets.dll differ
diff --git a/Build/WebApiPublish/Microsoft.Extensions.Configuration.dll b/Build/WebApiPublish/Microsoft.Extensions.Configuration.dll
new file mode 100644
index 0000000..4c0a93b
Binary files /dev/null and b/Build/WebApiPublish/Microsoft.Extensions.Configuration.dll differ
diff --git a/Build/WebApiPublish/Microsoft.Extensions.DependencyInjection.dll b/Build/WebApiPublish/Microsoft.Extensions.DependencyInjection.dll
new file mode 100644
index 0000000..f1208cc
Binary files /dev/null and b/Build/WebApiPublish/Microsoft.Extensions.DependencyInjection.dll differ
diff --git a/Build/WebApiPublish/Microsoft.Extensions.FileProviders.Abstractions.dll b/Build/WebApiPublish/Microsoft.Extensions.FileProviders.Abstractions.dll
new file mode 100644
index 0000000..5d2ddff
Binary files /dev/null and b/Build/WebApiPublish/Microsoft.Extensions.FileProviders.Abstractions.dll differ
diff --git a/Build/WebApiPublish/Microsoft.Extensions.FileProviders.Physical.dll b/Build/WebApiPublish/Microsoft.Extensions.FileProviders.Physical.dll
new file mode 100644
index 0000000..2c8a364
Binary files /dev/null and b/Build/WebApiPublish/Microsoft.Extensions.FileProviders.Physical.dll differ
diff --git a/Build/WebApiPublish/Microsoft.Extensions.FileSystemGlobbing.dll b/Build/WebApiPublish/Microsoft.Extensions.FileSystemGlobbing.dll
new file mode 100644
index 0000000..f2cb88e
Binary files /dev/null and b/Build/WebApiPublish/Microsoft.Extensions.FileSystemGlobbing.dll differ
diff --git a/Build/WebApiPublish/Microsoft.Extensions.Hosting.Abstractions.dll b/Build/WebApiPublish/Microsoft.Extensions.Hosting.Abstractions.dll
new file mode 100644
index 0000000..4d33a64
Binary files /dev/null and b/Build/WebApiPublish/Microsoft.Extensions.Hosting.Abstractions.dll differ
diff --git a/Build/WebApiPublish/Microsoft.Extensions.Hosting.Systemd.dll b/Build/WebApiPublish/Microsoft.Extensions.Hosting.Systemd.dll
new file mode 100644
index 0000000..bff1c1b
Binary files /dev/null and b/Build/WebApiPublish/Microsoft.Extensions.Hosting.Systemd.dll differ
diff --git a/Build/WebApiPublish/Microsoft.Extensions.Hosting.WindowsServices.dll b/Build/WebApiPublish/Microsoft.Extensions.Hosting.WindowsServices.dll
new file mode 100644
index 0000000..e2014ae
Binary files /dev/null and b/Build/WebApiPublish/Microsoft.Extensions.Hosting.WindowsServices.dll differ
diff --git a/Build/WebApiPublish/Microsoft.Extensions.Hosting.dll b/Build/WebApiPublish/Microsoft.Extensions.Hosting.dll
new file mode 100644
index 0000000..bdd4e97
Binary files /dev/null and b/Build/WebApiPublish/Microsoft.Extensions.Hosting.dll differ
diff --git a/Build/WebApiPublish/Microsoft.Extensions.Logging.Abstractions.dll b/Build/WebApiPublish/Microsoft.Extensions.Logging.Abstractions.dll
new file mode 100644
index 0000000..9676697
Binary files /dev/null and b/Build/WebApiPublish/Microsoft.Extensions.Logging.Abstractions.dll differ
diff --git a/Build/WebApiPublish/Microsoft.Extensions.Logging.Configuration.dll b/Build/WebApiPublish/Microsoft.Extensions.Logging.Configuration.dll
new file mode 100644
index 0000000..ea4b650
Binary files /dev/null and b/Build/WebApiPublish/Microsoft.Extensions.Logging.Configuration.dll differ
diff --git a/Build/WebApiPublish/Microsoft.Extensions.Logging.Console.dll b/Build/WebApiPublish/Microsoft.Extensions.Logging.Console.dll
new file mode 100644
index 0000000..c448a61
Binary files /dev/null and b/Build/WebApiPublish/Microsoft.Extensions.Logging.Console.dll differ
diff --git a/Build/WebApiPublish/Microsoft.Extensions.Logging.Debug.dll b/Build/WebApiPublish/Microsoft.Extensions.Logging.Debug.dll
new file mode 100644
index 0000000..6fc456c
Binary files /dev/null and b/Build/WebApiPublish/Microsoft.Extensions.Logging.Debug.dll differ
diff --git a/Build/WebApiPublish/Microsoft.Extensions.Logging.EventLog.dll b/Build/WebApiPublish/Microsoft.Extensions.Logging.EventLog.dll
new file mode 100644
index 0000000..f20868d
Binary files /dev/null and b/Build/WebApiPublish/Microsoft.Extensions.Logging.EventLog.dll differ
diff --git a/Build/WebApiPublish/Microsoft.Extensions.Logging.EventSource.dll b/Build/WebApiPublish/Microsoft.Extensions.Logging.EventSource.dll
new file mode 100644
index 0000000..e69b561
Binary files /dev/null and b/Build/WebApiPublish/Microsoft.Extensions.Logging.EventSource.dll differ
diff --git a/Build/WebApiPublish/Microsoft.Extensions.Logging.dll b/Build/WebApiPublish/Microsoft.Extensions.Logging.dll
new file mode 100644
index 0000000..9e2d7f9
Binary files /dev/null and b/Build/WebApiPublish/Microsoft.Extensions.Logging.dll differ
diff --git a/Build/WebApiPublish/Script/InstallWindowServer.ANSI.bat b/Build/WebApiPublish/Script/InstallWindowServer.ANSI.bat
new file mode 100644
index 0000000..5d28fb3
--- /dev/null
+++ b/Build/WebApiPublish/Script/InstallWindowServer.ANSI.bat
@@ -0,0 +1,31 @@
+::ʹSCװWindows
+::===================================
+::ԱʡУɾ
+@echo off
+>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
+if '%errorlevel%' NEQ '0' (
+ :: ԱȨ...
+ echo "Request to run with administrator privileges......"
+ goto UACPrompt
+) else ( goto gotAdmin )
+:UACPrompt
+ echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
+ echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs"
+ "%temp%\getadmin.vbs"
+ exit /B
+:gotAdmin
+ if exist "%temp%\getadmin.vbs" ( del "%temp%\getadmin.vbs" )
+ pushd "%CD%"
+ CD /D "%~dp0"
+::===================================
+echo %cd%
+:: Windows
+sc create DockerStudy.WebApi.Service binpath= "%cd%\..\DockerStudyApi.exe" start= auto
+
+:: ÷ַ
+sc description DockerStudy.WebApi.Service "DockerStudy.WebApi ."
+
+::
+sc start "DockerStudy.WebApi.Service"
+
+pause
\ No newline at end of file
diff --git a/Build/WebApiPublish/Script/InstallWindowServer.UTF8.bat b/Build/WebApiPublish/Script/InstallWindowServer.UTF8.bat
new file mode 100644
index 0000000..23e966b
--- /dev/null
+++ b/Build/WebApiPublish/Script/InstallWindowServer.UTF8.bat
@@ -0,0 +1,31 @@
+::使用SC命令,安装成Windows服务
+::===================================
+::请求管理员省份运行,可以删除
+@echo off
+>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
+if '%errorlevel%' NEQ '0' (
+ :: 请求管理员权限...
+ echo "Request to run with administrator privileges......"
+ goto UACPrompt
+) else ( goto gotAdmin )
+:UACPrompt
+ echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
+ echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs"
+ "%temp%\getadmin.vbs"
+ exit /B
+:gotAdmin
+ if exist "%temp%\getadmin.vbs" ( del "%temp%\getadmin.vbs" )
+ pushd "%CD%"
+ CD /D "%~dp0"
+::===================================
+echo %cd%
+:: 创建Windows服务
+sc create DockerStudy.WebApi.Service binpath= "%cd%\..\DockerStudyApi.exe" start= auto
+
+:: 设置服务的描述字符串
+sc description DockerStudy.WebApi.Service "DockerStudy.WebApi 服务."
+
+:: 启动服务
+sc start "DockerStudy.WebApi.Service"
+
+pause
\ No newline at end of file
diff --git a/Build/WebApiPublish/Script/UnInstallWindowServer.bat b/Build/WebApiPublish/Script/UnInstallWindowServer.bat
new file mode 100644
index 0000000..4d72a7b
--- /dev/null
+++ b/Build/WebApiPublish/Script/UnInstallWindowServer.bat
@@ -0,0 +1,24 @@
+::жWindows
+::===================================
+::ԱʡУɾ
+@echo off
+>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
+if '%errorlevel%' NEQ '0' (
+ :: ԱȨ...
+ echo "Request to run with administrator privileges......"
+ goto UACPrompt
+) else ( goto gotAdmin )
+:UACPrompt
+ echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
+ echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs"
+ "%temp%\getadmin.vbs"
+ exit /B
+:gotAdmin
+ if exist "%temp%\getadmin.vbs" ( del "%temp%\getadmin.vbs" )
+ pushd "%CD%"
+ CD /D "%~dp0"
+::===================================
+echo %cd%
+sc stop DockerStudy.WebApi.Service
+sc delete DockerStudy.WebApi.Service
+pause
\ No newline at end of file
diff --git a/Build/WebApiPublish/Swashbuckle.AspNetCore.SwaggerUI.dll b/Build/WebApiPublish/Swashbuckle.AspNetCore.SwaggerUI.dll
index 67d7f86..20b5fea 100644
Binary files a/Build/WebApiPublish/Swashbuckle.AspNetCore.SwaggerUI.dll and b/Build/WebApiPublish/Swashbuckle.AspNetCore.SwaggerUI.dll differ
diff --git a/Build/WebApiPublish/System.Diagnostics.DiagnosticSource.dll b/Build/WebApiPublish/System.Diagnostics.DiagnosticSource.dll
new file mode 100644
index 0000000..a973949
Binary files /dev/null and b/Build/WebApiPublish/System.Diagnostics.DiagnosticSource.dll differ
diff --git a/Build/WebApiPublish/System.Diagnostics.EventLog.dll b/Build/WebApiPublish/System.Diagnostics.EventLog.dll
new file mode 100644
index 0000000..51e0981
Binary files /dev/null and b/Build/WebApiPublish/System.Diagnostics.EventLog.dll differ
diff --git a/Build/WebApiPublish/System.ServiceProcess.ServiceController.dll b/Build/WebApiPublish/System.ServiceProcess.ServiceController.dll
new file mode 100644
index 0000000..484bc1d
Binary files /dev/null and b/Build/WebApiPublish/System.ServiceProcess.ServiceController.dll differ
diff --git a/Build/WebApiPublish/System.Text.Encodings.Web.dll b/Build/WebApiPublish/System.Text.Encodings.Web.dll
new file mode 100644
index 0000000..1778f67
Binary files /dev/null and b/Build/WebApiPublish/System.Text.Encodings.Web.dll differ
diff --git a/Build/WebApiPublish/System.Text.Json.dll b/Build/WebApiPublish/System.Text.Json.dll
new file mode 100644
index 0000000..d7d9987
Binary files /dev/null and b/Build/WebApiPublish/System.Text.Json.dll differ
diff --git a/Build/WebApiPublish/runtimes/win/lib/netcoreapp3.1/System.Diagnostics.EventLog.Messages.dll b/Build/WebApiPublish/runtimes/win/lib/netcoreapp3.1/System.Diagnostics.EventLog.Messages.dll
new file mode 100644
index 0000000..bc23526
Binary files /dev/null and b/Build/WebApiPublish/runtimes/win/lib/netcoreapp3.1/System.Diagnostics.EventLog.Messages.dll differ
diff --git a/Build/WebApiPublish/runtimes/win/lib/netcoreapp3.1/System.Diagnostics.EventLog.dll b/Build/WebApiPublish/runtimes/win/lib/netcoreapp3.1/System.Diagnostics.EventLog.dll
new file mode 100644
index 0000000..22fd534
Binary files /dev/null and b/Build/WebApiPublish/runtimes/win/lib/netcoreapp3.1/System.Diagnostics.EventLog.dll differ
diff --git a/Build/WebApiPublish/runtimes/win/lib/netcoreapp3.1/System.ServiceProcess.ServiceController.dll b/Build/WebApiPublish/runtimes/win/lib/netcoreapp3.1/System.ServiceProcess.ServiceController.dll
new file mode 100644
index 0000000..8feb762
Binary files /dev/null and b/Build/WebApiPublish/runtimes/win/lib/netcoreapp3.1/System.ServiceProcess.ServiceController.dll differ
diff --git a/DockerStudyApi/Controllers/DemoController.cs b/DockerStudyApi/Controllers/DemoController.cs
index de80ae2..e154449 100644
--- a/DockerStudyApi/Controllers/DemoController.cs
+++ b/DockerStudyApi/Controllers/DemoController.cs
@@ -6,7 +6,9 @@ using Microsoft.Extensions.Options;
using System;
using System.Collections.Generic;
+using System.ComponentModel.DataAnnotations;
using System.Linq;
+using System.Runtime.InteropServices;
using System.Threading.Tasks;
namespace DockerStudyApi.Controllers
@@ -54,6 +56,24 @@ namespace DockerStudyApi.Controllers
return Ok();
}
+ ///
+ /// 获取运行时信息
+ ///
+ [HttpGet]
+ public IActionResult RunTime()
+ {
+ var runInfo = new Dictionary()
+ {
+ {"操作系统",RuntimeInformation.OSDescription },
+ {".Net版本",RuntimeInformation.FrameworkDescription },
+ {"运行平台",RuntimeInformation.RuntimeIdentifier },
+ {"平台架构",RuntimeInformation.OSArchitecture.ToString() },
+ {"进程架构",RuntimeInformation.ProcessArchitecture.ToString() },
+ };
+
+ return Ok(runInfo);
+ }
+
///
/// 说明:泛型左右尖括号,不能写在注释里,会生成无效的xml
/// 解决:用[]或{}或中文符号<> 代替,或者使用xml转义字符 <>
@@ -99,7 +119,7 @@ namespace DockerStudyApi.Controllers
/// (仅支持字符串或Key=value两种形式)
///
[HttpGet]
- public IActionResult CmdPara(string cmdName)
+ public IActionResult CmdPara([Required(ErrorMessage = "命令行参数名必填")]string cmdName)
{
var cmdArgs = System.Environment.GetCommandLineArgs();
if (cmdArgs == null)
@@ -141,21 +161,74 @@ namespace DockerStudyApi.Controllers
}
+ ///
+ /// 获取所有命令参数
+ ///
+ [HttpGet]
+ public IActionResult AllCmdPara()
+ {
+ var cmdArgs = System.Environment.GetCommandLineArgs();
+ if (cmdArgs == null)
+ {
+ return Ok("启动时没有设置:命令行参数");
+ }
+ return Ok(cmdArgs);
+
+ }
+
///
/// 获取环境变量
///
[HttpGet]
- public IActionResult Evn(string envName)
+ public IActionResult Evn([Required(ErrorMessage = "环境变量名必填")]string envName)
{
var envValue = System.Environment.GetEnvironmentVariable(envName);
return Ok(envValue??"无此环境变量");
}
+ ///
+ /// 获取AspNetCore环境变量
+ /// (以ASPNETCORE_开头)
+ ///
+ [HttpGet]
+ public IActionResult AspNetCoeEvn()
+ {
+ var envValues = System.Environment.GetEnvironmentVariables();
+ if (envValues == null)
+ {
+ return Ok("无环境变量!");
+ }
+
+ var keys = envValues.Keys.Cast().ToList();
+ foreach (var key in keys)
+ {
+ if (string.IsNullOrEmpty(key))
+ {
+ continue;
+ }
+ if (key.ToString().ToUpper().StartsWith("ASPNETCORE_") == false)
+ {
+ envValues.Remove(key);
+ }
+ }
+ return Ok(envValues);
+ }
+
+ ///
+ /// 获取所有环境变量
+ ///
+ [HttpGet]
+ public IActionResult AllEvn()
+ {
+ var envValues = System.Environment.GetEnvironmentVariables();
+ return Ok(envValues);
+ }
+
///
/// 获取配置项
///
[HttpGet]
- public IActionResult ConfigItem(string itemName)
+ public IActionResult ConfigItem([Required(ErrorMessage = "配置项名称必填")]string itemName)
{
var envValue = _configuration.GetValue(itemName);
return Ok(envValue ?? "无此配置变量");
@@ -165,10 +238,24 @@ namespace DockerStudyApi.Controllers
/// 获取所有配置项
///
[HttpGet]
- public IActionResult Info()
+ public IActionResult AllConfigItes()
+ {
+ return Ok(_configuration.GetChildren());
+ }
+
+ ///
+ /// 获取配置源
+ ///
+ [HttpGet]
+ public IActionResult ConfigProviders()
{
- var cnfigText = Newtonsoft.Json.JsonConvert.SerializeObject(_configuration.GetChildren());
- return Ok(cnfigText);
+ var root = _configuration as ConfigurationRoot;
+
+ var providers = root.Providers.Select(p=>new {
+ Name=p.GetType().FullName,
+ });
+
+ return Ok(providers);
}
}
}
diff --git a/DockerStudyApi/DockerStudyApi.csproj b/DockerStudyApi/DockerStudyApi.csproj
index 5de445e..95174ef 100644
--- a/DockerStudyApi/DockerStudyApi.csproj
+++ b/DockerStudyApi/DockerStudyApi.csproj
@@ -9,13 +9,27 @@
+
+
-
+
+
+
+ PreserveNewest
+
+
+ PreserveNewest
+
+
+ PreserveNewest
+
+
+
diff --git a/DockerStudyApi/Program.cs b/DockerStudyApi/Program.cs
index ae8f142..c70ee12 100644
--- a/DockerStudyApi/Program.cs
+++ b/DockerStudyApi/Program.cs
@@ -6,6 +6,7 @@ using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
+using System.Runtime.InteropServices;
using System.Threading.Tasks;
namespace DockerStudyApi
@@ -17,15 +18,56 @@ namespace DockerStudyApi
CreateHostBuilder(args).Build().Run();
}
- public static IHostBuilder CreateHostBuilder(string[] args) =>
- Host.CreateDefaultBuilder(args)
+ public static IHostBuilder CreateHostBuilder(string[] args)
+ {
+ var hostBuilder = Host.CreateDefaultBuilder(args);
+
+ //ݲϵͳ÷
+ if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
+ {
+ hostBuilder.UseWindowsService(config =>
+ {
+ //÷
+ //config.ServiceName = "";
+
+ /* ע⣺
+ * һӦòΪWindowsУ.UseWindowsServiceʹ
+ * ӦΪWindowsʱ.UseWindowsService()²
+ 1Ϊ WindowsServiceLifetime
+ 2ݸΪ AppContext.BaseDirectoryͨΪ Windows GetCurrentDirectory صĵǰĿ¼ C:\WINDOWS\system32 ļ
+ 3Ϊ¼־־¼
+ ӦĬԴơ
+ ڻ ASP.NET Core ģҵ CreateDefaultBuilder ӦãĬ־Ϊ桱
+ appsettings.json/appsettings.{Environment}.json ṩУʹ Logging:EventLog:LogLevel:Default Ĭ־
+ ֻйԱԴµ¼Դ ʹӦóƴ¼ԴʱӦóԴ¼һ棬¼Դ
+ */
+ });
+ }
+
+ if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
+ {
+ hostBuilder.UseSystemd();
+ }
+
+ hostBuilder
.ConfigureAppConfiguration((hostingContext, config) =>
- {
- // config.AddJsonFile("appsettings.json", false, true);
+ {
+ // Ϊwindosʱ.UseWindowsService() ContentRootPath Ϊ AppContext.BaseDirectory
+
+ /* ͨ CreateDefaultBuilder during host constructionӦõݸӦõĬļ appsettings.json appsettings.{Environment}.json
+ ConfigureAppConfiguration еĿԱصļ SetBasePath
+ ʾУcustom_settings.json ļλӦõݸʱδʽû·
+ config.AddJsonFile("custom_settings.json");
+ */
+
+ // config.AddJsonFile("appsettings.json", false, true);
})
.ConfigureWebHostDefaults(webBuilder =>
{
webBuilder.UseStartup();
});
+
+ return hostBuilder;
+ }
}
}
diff --git a/DockerStudyApi/Script/InstallWindowServer.ANSI.bat b/DockerStudyApi/Script/InstallWindowServer.ANSI.bat
new file mode 100644
index 0000000..5d28fb3
--- /dev/null
+++ b/DockerStudyApi/Script/InstallWindowServer.ANSI.bat
@@ -0,0 +1,31 @@
+::ʹSCװWindows
+::===================================
+::ԱʡУɾ
+@echo off
+>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
+if '%errorlevel%' NEQ '0' (
+ :: ԱȨ...
+ echo "Request to run with administrator privileges......"
+ goto UACPrompt
+) else ( goto gotAdmin )
+:UACPrompt
+ echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
+ echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs"
+ "%temp%\getadmin.vbs"
+ exit /B
+:gotAdmin
+ if exist "%temp%\getadmin.vbs" ( del "%temp%\getadmin.vbs" )
+ pushd "%CD%"
+ CD /D "%~dp0"
+::===================================
+echo %cd%
+:: Windows
+sc create DockerStudy.WebApi.Service binpath= "%cd%\..\DockerStudyApi.exe" start= auto
+
+:: ÷ַ
+sc description DockerStudy.WebApi.Service "DockerStudy.WebApi ."
+
+::
+sc start "DockerStudy.WebApi.Service"
+
+pause
\ No newline at end of file
diff --git a/DockerStudyApi/Script/InstallWindowServer.UTF8.bat b/DockerStudyApi/Script/InstallWindowServer.UTF8.bat
new file mode 100644
index 0000000..23e966b
--- /dev/null
+++ b/DockerStudyApi/Script/InstallWindowServer.UTF8.bat
@@ -0,0 +1,31 @@
+::使用SC命令,安装成Windows服务
+::===================================
+::请求管理员省份运行,可以删除
+@echo off
+>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
+if '%errorlevel%' NEQ '0' (
+ :: 请求管理员权限...
+ echo "Request to run with administrator privileges......"
+ goto UACPrompt
+) else ( goto gotAdmin )
+:UACPrompt
+ echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
+ echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs"
+ "%temp%\getadmin.vbs"
+ exit /B
+:gotAdmin
+ if exist "%temp%\getadmin.vbs" ( del "%temp%\getadmin.vbs" )
+ pushd "%CD%"
+ CD /D "%~dp0"
+::===================================
+echo %cd%
+:: 创建Windows服务
+sc create DockerStudy.WebApi.Service binpath= "%cd%\..\DockerStudyApi.exe" start= auto
+
+:: 设置服务的描述字符串
+sc description DockerStudy.WebApi.Service "DockerStudy.WebApi 服务."
+
+:: 启动服务
+sc start "DockerStudy.WebApi.Service"
+
+pause
\ No newline at end of file
diff --git a/DockerStudyApi/Script/UnInstallWindowServer.bat b/DockerStudyApi/Script/UnInstallWindowServer.bat
new file mode 100644
index 0000000..4d72a7b
--- /dev/null
+++ b/DockerStudyApi/Script/UnInstallWindowServer.bat
@@ -0,0 +1,24 @@
+::жWindows
+::===================================
+::ԱʡУɾ
+@echo off
+>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
+if '%errorlevel%' NEQ '0' (
+ :: ԱȨ...
+ echo "Request to run with administrator privileges......"
+ goto UACPrompt
+) else ( goto gotAdmin )
+:UACPrompt
+ echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
+ echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs"
+ "%temp%\getadmin.vbs"
+ exit /B
+:gotAdmin
+ if exist "%temp%\getadmin.vbs" ( del "%temp%\getadmin.vbs" )
+ pushd "%CD%"
+ CD /D "%~dp0"
+::===================================
+echo %cd%
+sc stop DockerStudy.WebApi.Service
+sc delete DockerStudy.WebApi.Service
+pause
\ No newline at end of file