コード例 #1
0
        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";
            }
        }
コード例 #2
0
        protected override Message CreateFirstMessage()
        {
            Message m = new PublicKeysRequest(users);

            return(m);
        }