Exemple #1
0
 /// <summary>
 /// Generates the main line object and starts the second process.
 /// </summary>
 /// <typeparam name="TContext">Type of the transmitted context.</typeparam>
 /// <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.</param>
 /// <param name="dotnet">Run as dotnet.</param>
 /// <param name="args">Arguments for second process.</param>
 /// <returns>Returns main line.</returns>
 public static ContextLine <TContext> Launcher <TContext>(NotifyContext <TContext> notify, string filePath, int timeout, bool dotnet = false, string args = "")
     where TContext : class
 {
     return(Launcher(new ContextLine <TContext>(notify, timeout), filePath, dotnet, args));
 }
Exemple #2
0
 /// <summary>
 /// Generates the other side object of the line.
 /// </summary>
 /// <typeparam name="TContext">Type of the transmitted context.</typeparam>
 /// <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 ContextLine <TContext> Application <TContext>(NotifyContext <TContext> notify, int timeout, string[] args)
     where TContext : class
 {
     return(Application(new ContextLine <TContext>(notify, timeout), string.Join(" ", args)));
 }
Exemple #3
0
 internal ContextLine(NotifyContext <TContext> notify, int timeout)
     : base(notify, timeout)
 {
 }