${IS6_GetBusLineParameters_Title}
${IS6_GetBusLineParameters_Description}
/// <summary>${IS6_GetBusLineService_method_ProcessAsync_D}</summary> /// <param name="parameters">${IS6_GetBusLineService_method_ProcessAsync_param_Parameters}</param> /// <param name="state">${IS6_GetBusLineService_method_ProcessAsync_param_state}</param> public void ProcessAsync(GetBusLineParameters parameters, object state) { if (parameters == null) throw new ArgumentNullException(ExceptionStrings.ArgumentIsNull); if (string.IsNullOrEmpty(this.Url)) throw new InvalidOperationException(ExceptionStrings.InvalidUrl); base.SubmitRequest(base.Url + "/path.ashx?", GetParameters(parameters), new EventHandler<RequestEventArgs>(request_Completed), state, false); }
private Dictionary<string, string> GetParameters(GetBusLineParameters parameters) { Dictionary<string, string> dictionary = new Dictionary<string, string>(); if (parameters.InterchangeID != int.MinValue) { string method = "GetBusLinesByStopID"; dictionary.Add("method", method); dictionary.Add("map", parameters.MapName); dictionary.Add("interchangeID", parameters.InterchangeID.ToString()); } else { string method = "GetBusLinesByStopName"; dictionary.Add("method", method); dictionary.Add("map", parameters.MapName); dictionary.Add("stopName", parameters.StopName); } return dictionary; }
/// <summary>${IS6_GetBusLineService_method_ProcessAsync_D}</summary> /// <overloads>${IS6_GetBusLineService_method_ProcessAsync_overloads_D}</overloads> public void ProcessAsync(GetBusLineParameters parameters) { ProcessAsync(parameters, null); }