diff --git a/Stardust.Server/StarService.cs b/Stardust.Server/StarService.cs index ecd495cc..cf47adcc 100644 --- a/Stardust.Server/StarService.cs +++ b/Stardust.Server/StarService.cs @@ -135,18 +135,6 @@ namespace Stardust.Server XTrace.WriteLine(services.ToJson()); return false; } - - [Api(nameof(GetAll))] - public List GetAll() - { - var list = new List(); - for (var i = 0; i < 10; i++) - { - list.Add(Rand.NextString(8)); - } - - return list; - } #endregion #region 在线状态 diff --git a/Stardust.ServerFx/Properties/AssemblyInfo.cs b/Stardust.ServerFx/Properties/AssemblyInfo.cs new file mode 100644 index 00000000..89cf51bd --- /dev/null +++ b/Stardust.ServerFx/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// 有关程序集的一般信息由以下 +// 控制。更改这些特性值可修改 +// 与程序集关联的信息。 +[assembly: AssemblyTitle("星尘服务平台")] +[assembly: AssemblyDescription("星尘,轻量级服务框架。远程方法调用,服务自动注册和发现,负载均衡,动态伸缩,故障转移,性能监控。")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("新生命开发团队")] +[assembly: AssemblyProduct("Stardust.Server")] +[assembly: AssemblyCopyright("版权所有(C) 新生命开发团队 2019")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// 将 ComVisible 设置为 false 会使此程序集中的类型 +//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型 +//请将此类型的 ComVisible 特性设置为 true。 +[assembly: ComVisible(false)] + +// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID +[assembly: Guid("9a7251dd-7ee7-45c6-9eb6-f80789d3bcd7")] + +// 程序集的版本信息由下列四个值组成: +// +// 主版本 +// 次版本 +// 生成号 +// 修订号 +// +// 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号 +// 方法是按如下所示使用“*”: : +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyFileVersion("1.0.2019.0320")] diff --git a/Stardust.ServerFx/Stardust.ServerFx.csproj b/Stardust.ServerFx/Stardust.ServerFx.csproj new file mode 100644 index 00000000..73fe551b --- /dev/null +++ b/Stardust.ServerFx/Stardust.ServerFx.csproj @@ -0,0 +1,76 @@ + + + + + Debug + AnyCPU + {9A7251DD-7EE7-45C6-9EB6-F80789D3BCD7} + Exe + Stardust.Server + Stardust.Server + v4.5 + 512 + false + + + AnyCPU + true + full + false + ..\Bin\ + DEBUG;TRACE + prompt + 4 + false + + + AnyCPU + pdbonly + true + ..\Bin\ + TRACE + prompt + 4 + false + + + + ..\DLL\NewLife.Core.dll + + + + + + + + + + + + ..\DLL\XCode.dll + + + + + Program.cs + + + Setting.cs + + + StarService.cs + + + + + + {8b5fc187-6592-4717-99c3-d97743062fd3} + Stardust.Data + + + {aadbd913-749c-467e-a63f-c118c4c82351} + Stardust + + + + \ No newline at end of file diff --git a/Test/Program.cs b/Test/Program.cs index f15fd2c2..629d10e9 100644 --- a/Test/Program.cs +++ b/Test/Program.cs @@ -32,19 +32,6 @@ namespace Test sc.Star = star; - var rs = star.InvokeAsync>("GetAll").Result; - - //if (set.Debug) - { - var ns = sc.EnsureCreate() as NetServer; - ns.Log = XTrace.Log; -#if DEBUG - ns.LogSend = true; - ns.LogReceive = true; - sc.EncoderLog = XTrace.Log; -#endif - } - sc.Start(); _Server = sc; diff --git a/星尘.sln b/星尘.sln index e31e2960..9ba4de37 100644 --- a/星尘.sln +++ b/星尘.sln @@ -20,6 +20,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Test", "Test\Test.csproj", EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Stardust.Server", "Stardust.Server\Stardust.Server.csproj", "{73B28F07-E99F-45A8-B9A0-90E7BAC133A3}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Stardust.ServerFx", "Stardust.ServerFx\Stardust.ServerFx.csproj", "{9A7251DD-7EE7-45C6-9EB6-F80789D3BCD7}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -50,6 +52,10 @@ Global {73B28F07-E99F-45A8-B9A0-90E7BAC133A3}.Debug|Any CPU.Build.0 = Debug|Any CPU {73B28F07-E99F-45A8-B9A0-90E7BAC133A3}.Release|Any CPU.ActiveCfg = Release|Any CPU {73B28F07-E99F-45A8-B9A0-90E7BAC133A3}.Release|Any CPU.Build.0 = Release|Any CPU + {9A7251DD-7EE7-45C6-9EB6-F80789D3BCD7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {9A7251DD-7EE7-45C6-9EB6-F80789D3BCD7}.Debug|Any CPU.Build.0 = Debug|Any CPU + {9A7251DD-7EE7-45C6-9EB6-F80789D3BCD7}.Release|Any CPU.ActiveCfg = Release|Any CPU + {9A7251DD-7EE7-45C6-9EB6-F80789D3BCD7}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE