Ejemplo n.º 1
0
        public static void SearchBing(ServiceRequest2 serviceRequest, ServiceRequestEventHandler<List<BingResource>> asyncCallback, ReqBingLocation postData)
        {
#if OFFLINE
            serviceRequest.BeginWebRequestOfflineBing<ResBing, List<BingResource>>(service._serviceBingLocation, asyncCallback, json._jsonBingLocation);
#else
            new Thread(() => { serviceRequest.BeginWebRequestBing<ResBing, List<BingResource>, ReqBingLocation>(service._serviceBingLocation, asyncCallback, postData); }).Start();
#endif
        }