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); }
public Task <IResponse> Call(IRequest request) { ActorRpcTask task = new ActorRpcTask(this, (IMessage)request); this.Add(task); return(task.Tcs.Task); }
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); }