Пример #1
0
        /// <summary>
        /// Starts a process with start info asynchronously
        /// </summary>
        public static void StartAsync(ProcessStartInfo psi)
        {
            StartDelegate3 dlgt = new StartDelegate3(Start);

            dlgt.BeginInvoke(psi, ar =>
            {
                try
                {
                    dlgt.EndInvoke(ar);
                }
                catch (Exception ex)
                {
                    // Something wrong, handling for possible leaks
                }
            },
                             null);
        }
Пример #2
0
 /// <summary>
 /// Starts a process with start info asynchronously
 /// </summary>
 public static void StartAsync(ProcessStartInfo psi)
 {
     StartDelegate3 dlgt = new StartDelegate3(Start);
     dlgt.BeginInvoke(psi, null, null);
 }
Пример #3
0
        /// <summary>
        /// Starts a process with start info asynchronously
        /// </summary>
        public static void StartAsync(ProcessStartInfo psi)
        {
            StartDelegate3 dlgt = new StartDelegate3(Start);

            dlgt.BeginInvoke(psi, null, null);
        }