/// <summary> /// Specify the method which should be executed when this task is invoked /// </summary> /// <param name="action">Method which must be executed when this task is invoked</param> /// <returns>The current <see cref="SimpleTask"/>, for method chaining</returns> public SimpleTask Run <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>(Action <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> action) { this.Invoker = new RunMethodInvoker(action).Arg <T1>().Arg <T2>().Arg <T3>().Arg <T4>().Arg <T5>().Arg <T6>().Arg <T7>().Arg <T8>().Arg <T9>().Arg <T10>().Arg <T11>().Arg <T12>().Arg <T13>().Arg <T14>().Arg <T15>().Arg <T16>(); return(this); }
/// <summary> /// Specify the method which should be executed when this task is invoked /// </summary> /// <param name="action">Method which must be executed when this task is invoked</param> /// <returns>The current <see cref="SimpleTask"/>, for method chaining</returns> public SimpleTask Run <T1, T2, T3, T4, T5, T6, T7, T8>(Action <T1, T2, T3, T4, T5, T6, T7, T8> action) { this.Invoker = new RunMethodInvoker(action).Arg <T1>().Arg <T2>().Arg <T3>().Arg <T4>().Arg <T5>().Arg <T6>().Arg <T7>().Arg <T8>(); return(this); }
/// <summary> /// Specify the method which should be executed when this task is invoked /// </summary> /// <param name="action">Method which must be executed when this task is invoked</param> /// <returns>The current <see cref="SimpleTask"/>, for method chaining</returns> public SimpleTask Run <T>(Action <T> action) { this.Invoker = new RunMethodInvoker(action).Arg <T>(); return(this); }
/// <summary> /// Specify the method which should be executed when this task is invoked /// </summary> /// <param name="action">Method which must be executed when this task is invoked</param> /// <returns>The current <see cref="SimpleTask"/>, for method chaining</returns> public SimpleTask Run <T1, T2, T3, T4>(Action <T1, T2, T3, T4> action) { this.Invoker = new RunMethodInvoker(action).Arg <T1>().Arg <T2>().Arg <T3>().Arg <T4>(); return(this); }
/// <summary> /// Specify the method which should be executed when this task is invoked /// </summary> /// <param name="action">Method which must be executed when this task is invoked</param> /// <returns>The current <see cref="SimpleTask"/>, for method chaining</returns> public SimpleTask Run(Action action) { this.Invoker = new RunMethodInvoker(action); return(this); }