Symbol.Cloud.Server.DotNetty NuGet Package

请在最终运行的项目中配置服务端参数,文件名规则为:*.cloud.server.config.json,以下为参考配置:
{
//协议配置,可以是单个对象,或数组
//可以不填写
"protocol": [
{
//名称,可以不填写
"name": "default",
//数据,不填写默认为json
"data": {
//类型:json,xml,treePackage,soap,custom
"type": "json",
//自定义格式类型:TestAssembly.TestClass, TestAssembly
//可以不写
"customType": null
},
//加密,不填写默认不加密
"encrypt": {
//类型:none,AESStatic,custom
"type": "none",
//自定义格式类型:TestAssembly.TestClass, TestAssembly
//可以不写
"customType": null
},
//传输介质,不填写默认为original
"media": {
//类型:original,base64,hex,custom
"type": "original",
//自定义格式类型:TestAssembly.TestClass, TestAssembly
//可以不写
"customType": null
}
}
],
//服务器
"server": {
//名称,可以不填写
"name": "my.cloud",
//主机:域名或IP,默认localhost
"host": "localhost",
//端口
"port": 10086,
//超时:秒,默认120,可以不写
"timeout": 120,
//调试模式:默认不启用,可以不写
"debug": true,
//参数设置:可以不写
"settings": {
}
},
//数据库,不需要可以不写
"database": {
//连接参数
//通用参数:主机、端口、数据库名称、账号、密码
//其它参数可以写在里面,取决于提供者是否支持
"connection": {
//host 主机,可以包括端口,经test.com:1433
"host": "localhost",
//port 端口,可以不写,表示默认
"port":11433,
//name 数据库名称
"name": "test",
//account 账号
"account": "test",
//password 密码
"password": "123456"
}
},
//客户端
"client": [
{
//名称,可以不写,并没有影响
"name": "my.manager",
//状态
"enable": true,
//授权码
"authCode": "203AFBA5816078A7BAF822C04687B3D3",
//权限列表,可以不写
"permissions": [

],
//外部配置,可以不写
//可以为单个字符串,或数组
//外部配置可重写 authCode
//外部配置可追加(自动去重) permissions
//路径相对于配置文件
//支持变量 {name} {server.name}
"config": [
"module.*.manager.client.json",
"{server.name}.manager.client.json"
]
}
]
}

请在api项目中配置权限信息,命名规则以服务端配置config规则定义为准,以下为示例配置:
文件名:module.setting.manager.client.json
{
"permissions": [
//系统设置.Begin
"my.read.setting",
"my.write.setting"
//系统设置.End
]
}.




Got any Symbol.Cloud.Server.DotNetty Question?





Info

Version: 1.1.0.8
Author(s): symbolspace
Last Update: Thursday, August 3, 2023
.NET Fiddle: Create the first Fiddle
Project Url: https://github.com/symbolspace/Symbol.Cloud/
NuGet Url: https://www.nuget.org/packages/Symbol.Cloud.Server.DotNetty


Install
Install-Package Symbol.Cloud.Server.DotNetty
dotnet add package Symbol.Cloud.Server.DotNetty
paket add Symbol.Cloud.Server.DotNetty
Symbol.Cloud.Server.DotNetty Download (Unzip the "nupkg" after downloading)

.NETFramework 4.5 .NETFramework 4.7 .NETStandard 2.0 net452 net46 net461 netcoreapp2.0


Tags



STATS

must-have-score

2

avg-downloads-per-day

1

days-since-last-release

267