public static BatchStep Add(this IList<BatchStep> list, HttpMethod method, string to, object body) { var id = list.Count; var step = new BatchStep {Method = method, To = to, Body = body, Id = id}; list.Add(step); return step; }
public static BatchStep Add(this IList <BatchStep> list, HttpMethod method, string to, object body) { var id = list.Count; var step = new BatchStep { Method = method, To = to, Body = body, Id = id }; list.Add(step); return(step); }
public BatchStepResult this[BatchStep step] { get { return(this.SingleOrDefault(r => r.Id == step.Id)); } }