Infrastructure.SharedAppsettings.Client
1.1.0
dotnet add package Infrastructure.SharedAppsettings.Client --version 1.1.0
NuGet\Install-Package Infrastructure.SharedAppsettings.Client -Version 1.1.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Infrastructure.SharedAppsettings.Client" Version="1.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Infrastructure.SharedAppsettings.Client --version 1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Infrastructure.SharedAppsettings.Client, 1.1.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Infrastructure.SharedAppsettings.Client as a Cake Addin
#addin nuget:?package=Infrastructure.SharedAppsettings.Client&version=1.1.0
// Install Infrastructure.SharedAppsettings.Client as a Cake Tool
#tool nuget:?package=Infrastructure.SharedAppsettings.Client&version=1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
获取共享配置
服务端项目另外独立,主体设计:
- 对应用进行jwt请求授权
- 加密响应
- 应用按需共享相关的配置文件(多个)
使用说明
- 引用Infrastructure.SharedAppsettings.Client
- 复制appsettings.remoteConfig.json到项目中
{
"RemoteConfigs": {
"BaseUrl": "your server url",
"AgentId": 2,
"Secret": "your secret",
"EncryptSecret": "your secret"
}
}
- Program.cs 使用appsettings.remoteConfig.json 和初始下载远程配置
var Configuration = builder.Configuration
.AddJsonFile("appsettings.json", optional: false, reloadOnChange: true)
.AddJsonFile("appsettings.remoteConfig.json", optional: false, reloadOnChange: true)
.Build();
builder.Configuration.AddRemoteConfiguration();
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- Infrastructure.AccessToken.Domain (>= 1.1.0)
- Infrastructure.UnifiedOutput (>= 1.1.4)
- Infrastructure.Utils.EncryptFilter (>= 1.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.