namespace OMS.NET.Instructs { /// /// 用于测试和代码复制 /// public class TestInstruct : Instruct { public TestInstruct() { this.Type = "test"; } public override Task Handler(string wsid) { return Task.Run(() => { //GlobalArea.UserConnects.Where(x => x.ID == wsid).First().UserEmail = "xxx@xx.com";//login GlobalArea.Log.Info("当前客户端连接数:" + GlobalArea.ConnectClientsCount); GlobalArea.Log.Info("当前登录用户数:" + GlobalArea.LoginUserCount); }); } } }