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; } }
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)); }
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); }
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); }
public Web(HostSetting hostSetting, WebLocation location, IDictionary data, int retry = 0, float retryDelay = 0f) : this(hostSetting.host, location, data, retry, retryDelay) { }
public Web(WebHost host, WebLocation location, IDictionary data, int retry = 0, float retryDelay = 0f) : this(host.ToString(), location, data, retry, retryDelay) { }