1 Star 0 Fork 1

Songxt/MSocketCore

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
RegService.cs 742 Bytes
一键复制 编辑 原始数据 按行查看 历史
Songxt 提交于 2022-04-28 16:53 . 启动时更细设备状态
using Hn.Database.DAL;
using MSocketCore.Hub;
using MSocketCore.MSocket;
using Topshelf;
namespace MSocketCore
{
public class RegService : ServiceControl
{
private readonly MessageClient _client;
private readonly ServerContainer _server;
public RegService(ServerContainer server, MessageClient client)
{
_server = server;
_client = client;
}
public bool Start(HostControl hostControl)
{
_server.Start();
_client.Connect();
return true;
}
public bool Stop(HostControl hostControl)
{
_server.Stop();
_client.DisConnect();
return true;
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/songxt/msocketcore.git
git@gitee.com:songxt/msocketcore.git
songxt
msocketcore
MSocketCore
master

搜索帮助