Exemplo n.º 1
0
        /// <summary>
        /// Retrieves a place based on the specified coordinates.
        /// </summary>
        /// <param name="latitude">The latitude.</param>
        /// <param name="longitude">The longitude.</param>
        /// <param name="options">The options.</param>
        /// <param name="timeout">The timeout.</param>
        /// <param name="function">The function.</param>
        /// <returns></returns>
        public static IAsyncResult Lookup(
            double latitude,
            double longitude,
            TwitterPlaceLookupOptions options,
            TimeSpan timeout,
            Action <TwitterAsyncResponse <TwitterPlaceCollection> > function)
        {
            Func <double, double, TwitterPlaceLookupOptions, TwitterResponse <TwitterPlaceCollection> > methodToCall = TwitterPlace.Lookup;

            return(methodToCall.BeginInvoke(
                       latitude,
                       longitude,
                       options,
                       result => AsyncUtility.ThreeParamsNoTokenCallback(result, timeout, methodToCall, function),
                       null));
        }