/// <summary> /// Generates the main line object and starts the second process. /// </summary> /// <param name="notify">The notification object.</param> /// <param name="filePath">The path of the second process.</param> /// <param name="timeout">Time waiting for the connection response. Example 3000ms</param> /// <param name="dotnet">Run as dotnet.</param> /// <param name="args">Arguments for second process.</param> /// <returns>Returns main line.</returns> public static MessageLine Launcher(NotifyMessage notify, string filePath, int timeout, bool dotnet = false, string args = "") { return(Launcher(new MessageLine(notify, timeout), filePath, dotnet, args)); }
/// <summary> /// Generates the other side object of the line. /// </summary> /// <param name="notify">The notification object.</param> /// <param name="timeout">Time waiting for the connection response.</param> /// <param name="args">Pass entry point args for connect.</param> /// <returns>Returns the other side of the line.</returns> public static MessageLine Application(NotifyMessage notify, int timeout, string args) { return(Application(new MessageLine(notify, timeout), args)); }
/// <summary> /// Generates the other side object of the line. /// </summary> /// <param name="notify">The notification object.</param> /// <param name="timeout">Time waiting for the connection response.</param> /// <param name="args">Pass entry point args for connect.</param> /// <returns>Returns the other side of the line.</returns> public static MessageLine Application(NotifyMessage notify, int timeout, string[] args) { return(Application(notify, timeout, string.Join(" ", args))); }
internal MessageLine(NotifyMessage notify, int timeout) : this() { Notify = notify; this.timeout = timeout; }