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.
24 lines
617 B
C#
24 lines
617 B
C#
namespace OMS.NET.Instructs
|
|
{
|
|
public class GetPublickeyInstruct : Instruct
|
|
{
|
|
public GetPublickeyInstruct()
|
|
{
|
|
Type = "get_publickey";
|
|
}
|
|
|
|
public override Task Handler(string wsid)
|
|
{
|
|
return Task.Run(() =>
|
|
{
|
|
ResponseOrBroadcastInstructs.Add(new Instruct()
|
|
{
|
|
IsResponse = true,
|
|
Type = "publickey",
|
|
Data = GlobalArea.GetRsaPublickKey()
|
|
});
|
|
//Thread.Sleep(9000);//模拟耗时操作
|
|
});
|
|
}
|
|
}
|
|
} |