Symbol.Cloud.Server.DotNetty 1.0.0.5

请在最终运行的项目中配置服务端参数,文件名规则为:*.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
   ]
}

Install-Package Symbol.Cloud.Server.DotNetty -Version 1.0.0.5
dotnet add package Symbol.Cloud.Server.DotNetty --version 1.0.0.5
<PackageReference Include="Symbol.Cloud.Server.DotNetty" Version="1.0.0.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Symbol.Cloud.Server.DotNetty --version 1.0.0.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
  • HTTP协议时,CurrentIP 优先级:X-Forwarded-For、X-Read-IP、RemoteAddress;
  • HTTP协议时,CurrentIP 优先级:X-Forwarded-For、X-Read-IP、RemoteAddress;

Release Notes

Please see https://github.com/symbolspace/Symbol.Cloud/wiki/Home for more information.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.0.5 68 8/5/2019
1.0.0.4 57 7/29/2019
1.0.0.2 68 7/9/2019
1.0.0.1 67 7/8/2019