protected override void ExecuteDetails(object context) { PublicKeysRequest incoming = (PublicKeysRequest)context; List <Tuple <string, UserKey> > keys = KRM.GetUserKeys(incoming.Users); var response = new PublicKeysResponse(keys); var envelope = new Envelope() { Message = response, EndPoint = RemoteEndPoint }; if (!Send(envelope)) { Error = "Cannot send response"; } }
protected override Message CreateFirstMessage() { Message m = new PublicKeysRequest(users); return(m); }