Esempio n. 1
0
        /// <summary>
        /// Executes a simple HTTP GET to the specified url expecting a 200 (OK) in return. Will throw an exception if not 200.
        /// </summary>
        /// <param name="local"></param>
        /// <param name="url">The URL you want to HTTP GET</param>
        /// <returns></returns>
        public static IOfferLocalOperations HttpGet(this IOfferLocalOperations local, string url)
        {
            var operation = new HttpGetOperation(url);

            OperationExecutor.Execute((LocalBuilder)local, operation);
            return(local);
        }
Esempio n. 2
0
        public IOfferLocalOperations HttpGet(string url)
        {
            var operation = new HttpGetOperation(url);

            AddOperation(operation);
            return(this);
        }
        /// <summary>
        /// Executes a simple HTTP GET to the specified url expecting a 200 (OK) in return. Will throw an exception if not 200.
        /// </summary>
        /// <param name="url"></param>
        /// <returns></returns>
        public static IOfferLocalOperations HttpGet(this IOfferLocalOperations local, string url)
        {
            var operation = new HttpGetOperation(url);

            Configure.Operation(local, operation);
            return(local);
        }