private WebAdminRequest _GetQueryParameters(string httpQuery) { if (httpQuery.Contains('?')) { string[] tmp = httpQuery.Split('?'); // any parameters? if (!string.IsNullOrEmpty(tmp[1])) { // yes WebAdminRequest request = new WebAdminRequest(tmp[0]); string[] args = tmp[1].Split('&'); foreach (string arg in args) { if (arg.Contains('=')) { string[] tmp2 = arg.Split('='); request.Parameters.Add(tmp2[0], tmp2[1]); } else { request.Parameters.Add(arg, ""); } } return request; } else { // no parameters return new WebAdminRequest(tmp[0]); } } else { // just return what was passed with an empty dictionary return new WebAdminRequest(httpQuery); } }
public virtual WebAdminReply DoWebAdmin(WebAdminRequest request) { return new WebAdminReply(); }