namespace OMS.NET.Instructs { /// /// 用于测试和代码复制 /// public class PingInstuct : Instruct { public PingInstuct() { this.Type = "ping"; } public override Task Handler(string wsid) { return Task.Run(() => { this.ResponseOrBroadcastInstructs.Add(new PongInstuct() { IsResponse = true }); }); } } public class PongInstuct : Instruct { public PongInstuct() { this.Type = "pong"; } } }