示例#1
0
        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));
        }
示例#2
0
 protected void AddPendingRequest(MyRequestHandler handler)
 {
     m_PendingRequests.Add(handler.ClientId, handler);
 }