You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
654 B
C#
32 lines
654 B
C#
namespace OMS.NET.Instructs
|
|
{
|
|
/// <summary>
|
|
/// 用于测试和代码复制
|
|
/// </summary>
|
|
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";
|
|
}
|
|
}
|
|
} |