Symbol.Cloud.Server.DotNetty
1.1.0.8
dotnet add package Symbol.Cloud.Server.DotNetty --version 1.1.0.8
NuGet\Install-Package Symbol.Cloud.Server.DotNetty -Version 1.1.0.8
<PackageReference Include="Symbol.Cloud.Server.DotNetty" Version="1.1.0.8" />
paket add Symbol.Cloud.Server.DotNetty --version 1.1.0.8
#r "nuget: Symbol.Cloud.Server.DotNetty, 1.1.0.8"
// Install Symbol.Cloud.Server.DotNetty as a Cake Addin #addin nuget:?package=Symbol.Cloud.Server.DotNetty&version=1.1.0.8 // Install Symbol.Cloud.Server.DotNetty as a Cake Tool #tool nuget:?package=Symbol.Cloud.Server.DotNetty&version=1.1.0.8
请在最终运行的项目中配置服务端参数,文件名规则为:*.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
]
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net45 is compatible. net451 was computed. net452 is compatible. net46 is compatible. net461 is compatible. net462 was computed. net463 was computed. net47 is compatible. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
-
.NETFramework 4.5
- DotNetty.Buffers (>= 0.6.0)
- DotNetty.Codecs (>= 0.6.0)
- DotNetty.Codecs.Http (>= 0.6.0)
- DotNetty.Common (>= 0.6.0)
- DotNetty.Handlers (>= 0.6.0)
- DotNetty.Transport (>= 0.6.0)
- DotNetty.Transport.Libuv (>= 0.6.0)
- Symbol.Cloud.Server (>= 3.8.1.6)
- Symbol.Net (>= 4.0.0.7)
- Symbol.Web (>= 4.1.0.6)
-
.NETFramework 4.5.2
- DotNetty.Buffers (>= 0.6.0)
- DotNetty.Codecs (>= 0.6.0)
- DotNetty.Codecs.Http (>= 0.6.0)
- DotNetty.Common (>= 0.6.0)
- DotNetty.Handlers (>= 0.6.0)
- DotNetty.Transport (>= 0.6.0)
- DotNetty.Transport.Libuv (>= 0.6.0)
- Symbol.Cloud.Server (>= 3.8.1.6)
- Symbol.Net (>= 4.0.0.7)
- Symbol.Web (>= 4.1.0.6)
-
.NETFramework 4.6
- DotNetty.Buffers (>= 0.6.0)
- DotNetty.Codecs (>= 0.6.0)
- DotNetty.Codecs.Http (>= 0.6.0)
- DotNetty.Common (>= 0.6.0)
- DotNetty.Handlers (>= 0.6.0)
- DotNetty.Transport (>= 0.6.0)
- DotNetty.Transport.Libuv (>= 0.6.0)
- Symbol.Cloud.Server (>= 3.8.1.6)
- Symbol.Net (>= 4.0.0.7)
- Symbol.Web (>= 4.1.0.6)
-
.NETFramework 4.6.1
- DotNetty.Buffers (>= 0.6.0)
- DotNetty.Codecs (>= 0.6.0)
- DotNetty.Codecs.Http (>= 0.6.0)
- DotNetty.Common (>= 0.6.0)
- DotNetty.Handlers (>= 0.6.0)
- DotNetty.Transport (>= 0.6.0)
- DotNetty.Transport.Libuv (>= 0.6.0)
- Symbol.Cloud.Server (>= 3.8.1.6)
- Symbol.Net (>= 4.0.0.7)
- Symbol.Web (>= 4.1.0.6)
-
.NETFramework 4.7
- DotNetty.Buffers (>= 0.6.0)
- DotNetty.Codecs (>= 0.6.0)
- DotNetty.Codecs.Http (>= 0.6.0)
- DotNetty.Common (>= 0.6.0)
- DotNetty.Handlers (>= 0.6.0)
- DotNetty.Transport (>= 0.6.0)
- DotNetty.Transport.Libuv (>= 0.6.0)
- Symbol.Cloud.Server (>= 3.8.1.6)
- Symbol.Net (>= 4.0.0.7)
- Symbol.Web (>= 4.1.0.6)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Please see https://github.com/symbolspace/Symbol.Cloud/wiki/Home for more information.