public SearchResponse Search(SearchRequest request) { MyRequestHandler <SearchRequest, SearchResponse> handler = new MyRequestHandler <SearchRequest, SearchResponse>(); this.AddPendingRequest(handler); return(handler.Send(this.m_Canal, this.ServiceId, "search", request)); }
protected void AddPendingRequest(MyRequestHandler handler) { m_PendingRequests.Add(handler.ClientId, handler); }