Esempio n. 1
0
        /// <summary>
        /// Starts a process with arguments asynchronously
        /// </summary>
        public static void StartAsync(String path, String arguments)
        {
            StartDelegate2 dlgt = Start;

            dlgt.BeginInvoke(path, arguments, ar =>
            {
                try
                {
                    dlgt.EndInvoke(ar);
                }
                catch (Exception ex)
                {
                    // Something wrong, handling for possible leaks
                }
            }, null);
        }
Esempio n. 2
0
        /// <summary>
        /// Starts a process with arguments asynchronously
		/// </summary>
		public static void StartAsync(String path, String arguments)
		{
            StartDelegate2 dlgt = new StartDelegate2(Start);
            dlgt.BeginInvoke(path, arguments, null, null);
		}
Esempio n. 3
0
        /// <summary>
        /// Starts a process with arguments asynchronously
        /// </summary>
        public static void StartAsync(String path, String arguments)
        {
            StartDelegate2 dlgt = new StartDelegate2(Start);

            dlgt.BeginInvoke(path, arguments, null, null);
        }