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