/// <summary>${iServer2_GetMapStatusService_method_ProcessAsync_D}</summary> /// <param name="parameters">${iServer2_GetMapStatusService_method_ProcessAsync_param_parameters}</param> /// <param name="state">${iServer2_GetMapStatusService_method_ProcessAsync_param_state}</param> public void ProcessAsync(GetMapStatusParameters parameters, object state) { if (parameters == null) { throw new ArgumentNullException(ExceptionStrings.ArgumentIsNull); } if (string.IsNullOrEmpty(this.Url)) { throw new InvalidOperationException(ExceptionStrings.InvalidUrl); } if (!base.Url.EndsWith("/")) { base.Url += '/'; } base.SubmitRequest(base.Url + "commonhandler?", GetParameters(parameters), new EventHandler<RequestEventArgs>(request_Completed), state, false); }
private Dictionary<string, string> GetParameters(GetMapStatusParameters parameters) { Dictionary<string, string> dictionary = new Dictionary<string, string>(); string method = "GetMapStatus"; dictionary.Add("method", method); dictionary.Add("mapName", parameters.MapName); Dictionary<string, string> dict = new Dictionary<string, string>(); dict.Add("mapName", parameters.MapName); dict.Add("mapServicesAddress", parameters.MapServicesAddress); dict.Add("mapServicesPort", parameters.MapServicesPort); dictionary.Add("params", Bridge.CreateParams(method, dict)); return dictionary; }
/// <summary>${iServer2_GetMapStatusService_method_ProcessAsync_D}</summary> /// <overloads>${iServer2_GetMapStatusService_method_ProcessAsync_overloads_D}</overloads> /// <param name="parameters">${iServer2_GetMapStatusService_method_ProcessAsync_param_parameters}</param> public void ProcessAsync(GetMapStatusParameters parameters) { ProcessAsync(parameters, null); }