public Ret Run(Arg Parameter) { var data = new AsyncResponse <Arg, Ret>(Parameter); queue.Add(data); return(data.GetReturn()); }
public Response SendCommand(Command cmd) { var Reply = new AsyncResponse(cmd); queue.Add(Reply); return(Reply.GetReturn()); }