/// <summary>Gets the value for the specified item in the request query string.</summary> /// <param name="item">Item to return.</param> /// <returns> /// The value for the specified item in the request query string; /// null if <paramref name="item"/> is not found. /// </returns> public string GetQueryStringItem(string item) { string result; QueryStringValues.TryGetValue(item, out result); return(result); }
protected virtual void PrepareQueryString(OcrLanguages language, bool?detectOrientation = null) { if (language != OcrLanguages.NotSet) { QueryStringValues.Add("language", Globalization.Languages.FirstOrDefault((KeyValuePair <string, string> l) => l.Value == language.ToString()).Key); } if (detectOrientation.HasValue) { QueryStringValues.Add("detectOrientation", detectOrientation.Value.ToString()); } }