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.
22 lines
479 B
C#
22 lines
479 B
C#
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 Instruct()
|
|
{
|
|
IsResponse = true,
|
|
Type = "pong"
|
|
});
|
|
});
|
|
}
|
|
}
|
|
} |