Example #1
0
 public Web(string hostUrl, WebLocation location, IDictionary data = null, int retry = 0, float retryDelay = 0f)
     : this(hostUrl, location.location, data, retry, retryDelay)
 {
     if (location.method == WebLocation.Method.Post)
     {
         RequestEnumrator = Post;
     }
 }
Example #2
0
        public ActionResult Order(int id)
        {
            var libLocation = Repo.FindLocationByID(id);

            var wbLocation = new WebLocation
            {
                AdressLine1 = libLocation.AdressLine1,
                AdressLine2 = libLocation.AdressLine2,
                Id          = libLocation.Id,
                ZipCode     = libLocation.ZipCode,
            };

            return(View(wbLocation));
        }
Example #3
0
    public static void Request(string url, WebLocation location, IDictionary data, Action <WebResult> OnComplete = null, int retry = 0, float retryDelay = 0f)
    {
        Web web = new Web(url, location, data, retry, retryDelay);

        Request(web, OnComplete);
    }
Example #4
0
 public static void Request(HostSetting hostSetting, WebLocation location, IDictionary data, Action <WebResult> OnComplete = null, int retry = 0, float retryDelay = 0f)
 {
     Request(hostSetting.host, location, data, OnComplete, retry, retryDelay);
 }
Example #5
0
 public Web(HostSetting hostSetting, WebLocation location, IDictionary data, int retry = 0, float retryDelay = 0f)
     : this(hostSetting.host, location, data, retry, retryDelay)
 {
 }
Example #6
0
 public Web(WebHost host, WebLocation location, IDictionary data, int retry = 0, float retryDelay = 0f)
     : this(host.ToString(), location, data, retry, retryDelay)
 {
 }