/// <summary> /// Adds a step to the process that executes a request with the given method and data /// </summary> /// <param name="url"></param> /// <param name="method"></param> /// <param name="data"></param> /// <returns></returns> public static ProcessBuilder AddStep(this ProcessBuilder builder, string url, HttpMethod method, object data) { var reference = Guid.Empty; return(builder.AddStep(url, method, data, out reference)); }
/// <summary> /// Adds a step to the process that executes a simple GET request /// </summary> /// <param name="url"></param> /// <returns></returns> public static ProcessBuilder AddStep(this ProcessBuilder builder, string url) { var reference = Guid.Empty; return(builder.AddStep(url, out reference)); }
/// <summary> /// Adds a step to the process that executes a simple GET request /// </summary> /// <param name="url"></param> /// <param name="reference"></param> /// <returns>Returns a reference code to the step created</returns> public static ProcessBuilder AddStep(this ProcessBuilder builder, string url, out Guid reference) { return(builder.AddStep(url, HttpMethod.Get, null, out reference)); }
/// <summary> /// Adds a step to the process that executes a request with a lazy loaded request data /// </summary> /// <param name="url"></param> /// <param name="method"></param> /// <param name="lazyData"></param> /// <returns></returns> public static ProcessBuilder AddStep(this ProcessBuilder builder, string url, HttpMethod method, Func <object> lazyData, StepOptions options = null) { var reference = Guid.Empty; return(builder.AddStep(url, method, lazyData, out reference, options)); }