Exemple #1
0
        public Task <Response> Call <Response>(ARequest request) where Response : AResponse
        {
            ActorRpcTask <Response> task = new ActorRpcTask <Response>(this, request);

            this.Add(task);
            return(task.Tcs.Task);
        }
Exemple #2
0
        public Task <IResponse> Call(IRequest request)
        {
            ActorRpcTask task = new ActorRpcTask(this, (IMessage)request);

            this.Add(task);
            return(task.Tcs.Task);
        }
Exemple #3
0
        public Task <Response> Call <Response>(ARequest request) where Response : AResponse
        {
            this.LastSendTime = TimeHelper.Now();
            ActorRpcTask <Response> task = new ActorRpcTask <Response>(this, request);

            this.Add(task);
            return(task.Tcs.Task);
        }