Symbol.Cloud.Server
3.8.0.2
See the version list below for details.
dotnet add package Symbol.Cloud.Server --version 3.8.0.2
NuGet\Install-Package Symbol.Cloud.Server -Version 3.8.0.2
<PackageReference Include="Symbol.Cloud.Server" Version="3.8.0.2" />
paket add Symbol.Cloud.Server --version 3.8.0.2
#r "nuget: Symbol.Cloud.Server, 3.8.0.2"
// Install Symbol.Cloud.Server as a Cake Addin #addin nuget:?package=Symbol.Cloud.Server&version=3.8.0.2 // Install Symbol.Cloud.Server as a Cake Tool #tool nuget:?package=Symbol.Cloud.Server&version=3.8.0.2
服务端组件
请在最终运行的项目中引用对应运行环境库,例如基于DotNetty的Symbol.Cloud.Server.DotNetty
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. 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. |
.NET Core | netcoreapp3.1 is compatible. |
.NET Framework | net35 is compatible. net40 was computed. net403 was computed. net45 was computed. 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 is compatible. net481 was computed. |
-
.NETCoreApp 3.1
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 3.1.0)
- Symbol.Cloud (>= 1.5.0.42)
- Symbol.IO.Packing.TreePackage (>= 4.0.0.4)
-
.NETFramework 3.5
- Symbol.Cloud (>= 1.5.0.42)
- Symbol.IO.Packing.TreePackage (>= 4.0.0.4)
-
.NETFramework 4.5.2
- Symbol.Cloud (>= 1.5.0.42)
- Symbol.IO.Packing.TreePackage (>= 4.0.0.4)
-
.NETFramework 4.6
- Symbol.Cloud (>= 1.5.0.42)
- Symbol.IO.Packing.TreePackage (>= 4.0.0.4)
-
.NETFramework 4.6.1
- Symbol.Cloud (>= 1.5.0.42)
- Symbol.IO.Packing.TreePackage (>= 4.0.0.4)
-
.NETFramework 4.7
- Symbol.Cloud (>= 1.5.0.42)
- Symbol.IO.Packing.TreePackage (>= 4.0.0.4)
-
.NETFramework 4.8
- Symbol.Cloud (>= 1.5.0.42)
- Symbol.IO.Packing.TreePackage (>= 4.0.0.4)
-
net5.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 5.0.0)
- Symbol.Cloud (>= 1.5.0.42)
- Symbol.IO.Packing.TreePackage (>= 4.0.0.4)
-
net6.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 6.0.0)
- Symbol.Cloud (>= 1.5.0.42)
- Symbol.IO.Packing.TreePackage (>= 4.0.0.4)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on Symbol.Cloud.Server:
Package | Downloads |
---|---|
Symbol.Cloud.Server.Kestrel
调用方法: using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using System.IO; public static IHostBuilder CreateHostBuilder(string[] args) { return Host.CreateDefaultBuilder(args).ConfigureWebHostDefaults(webBuilder => { webBuilder .UseConfiguration( new ConfigurationBuilder() .SetBasePath(Directory.GetCurrentDirectory()) //端口修改办法 // 1 appSetting.json 末尾加一行 "urls": "https://*:10086" 端口自己写 // 2 通过命令行 --urls=http://*:10086 .AddCommandLine(args) .Build()) //启用http1 和 http2 .EnableHttp1AndHttp2() //以下两段代码可以放到项目的Startup.cs中,本处方便说明 //组件(服务)时刻 .ConfigureServices((serviceProvider) => { //加入Mvc组件 serviceProvider.AddControllers(); //加入Symbol Cloud Server 组件 serviceProvider.AddSymbolCloudServer(); }) //启用时刻 .Configure((context, app) => { //启用调试页面 if (context.HostingEnvironment.IsDevelopment()) { app.UseDeveloperExceptionPage(); } //启用路由,Mvc必须使用 app.UseRouting(); //启用Symbol Cloud Server app.UseSymbolCloudServer(); //启用Symbol Cloud Server API列表页面 // true 表示 监听 / 并跳转到 /apiList.do app.UseSymbolCloudApiList(true); //endpoint映射 app.UseEndpoints(endpoints => { //首页,如果ApiList为false就可以打开它 //endpoints.MapGet("/", async context => { // await context.Response.WriteAsync("Hello World!"); //}); //Mvc路由规则 endpoints.MapControllerRoute(name: "default", pattern: "{controller}/{action}/{id?}"); }); }); }); } 请在最终运行的项目中配置服务端参数,文件名规则为:app_data/*.cloud.server.config.json,以下为参考配置: { //协议配置,可以是单个对象,或数组 //可以不填写 "protocol": [{ "name": "default",//名称,可选 "data": {//数据,不填写默认为json "type": "json", //类型:json,xml,treePackage,soap,custom "customType": null //可选,自定义格式类型:TestAssembly.TestClass, TestAssembly }, "encrypt": {//加密,不填写默认不加密 "type": "none",//类型:none,AESStatic,custom "customType": null //可选,自定义格式类型:TestAssembly.TestClass, TestAssembly }, "media": {//传输介质,不填写默认为original "type": "original",//类型:original,base64,hex,custom "customType": null //可选,自定义格式类型:TestAssembly.TestClass, TestAssembly } }], //服务器 "server": { "name": "my.cloud",//名称,可选 "host": "localhost",//主机:域名或IP,默认localhost "port": 1,//端口 "timeout": 120,//超时:秒,默认120,可选 "debug": true,//调试模式:默认不启用,可选 "settings": { } //参数设置:可选 }, //数据库,不需要可以不写 "database": { //连接参数 //通用参数:主机、端口、数据库名称、账号、密码 //其它参数可以写在里面,取决于提供者是否支持 "connection": { "host": "localhost", //主机,可以包括端口,经test.com:1433 "port":11433, //可以不写,表示默认 "name": "test", //数据库名称 "account": "test", //登录账号 "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 存储位置:app_data { "permissions": [ //系统设置.Begin "my.read.setting", "my.write.setting" //系统设置.End ] } |
|
Symbol.Cloud.Server.DotNetty
请在最终运行的项目中配置服务端参数,文件名规则为:*.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 ] } |
|
Symbol.Cloud.Server.IIS
Please see https://github.com/symbolspace/Symbol.Cloud/wiki/Home for more information. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
3.8.1.6 | 1,739 | 8/3/2023 |
3.8.1.5 | 2,102 | 8/3/2023 |
3.8.1.4 | 150 | 8/2/2023 |
3.8.1.3 | 2,094 | 6/7/2023 |
3.8.0.2 | 278 | 3/2/2023 |
3.8.0.1 | 1,686 | 2/28/2023 |
3.7.0.4 | 1,489 | 12/20/2022 |
3.7.0.2 | 3,712 | 7/29/2022 |
3.7.0.1 | 2,662 | 7/25/2022 |
3.6.0.53 | 1,833 | 3/13/2022 |
3.6.0.47 | 2,198 | 7/1/2020 |
3.6.0.46 | 9,384 | 12/11/2019 |
3.6.0.44 | 603 | 8/5/2019 |
3.6.0.43 | 978 | 7/29/2019 |
3.6.0.41 | 986 | 7/9/2019 |
3.6.0.36 | 882 | 7/8/2019 |
3.6.0.33 | 540 | 7/5/2019 |
3.6.0.32 | 545 | 7/3/2019 |
Please see https://github.com/symbolspace/Symbol.Cloud/wiki/Home for more information.