Exemplo n.º 1
0
            public void Buscar(string localidad)
            {
                  ReqBingLocation req = new ReqBingLocation();
                  req.locality = localidad;
                  req.key = "AmKFPfZ6uWVERjq1Qm3LIOWy0kQPnoQDXTB1qebadpbrk_Lo_6l926CnRVSqYnl2";

                  Services.SearchBing(base.ServiceRequest, ResponseBuscar, req);
            }
Exemplo n.º 2
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
        }