Example #1
0
        /// <summary>
        ///     Start transforming all work items in the queue async. The
        ///     <see cref="ProcessingCompleted" /> event will fire when done.
        /// </summary>
        public void StartAsync()
        {
            StartDelegate startDelegate = new StartDelegate(Start);
            IAsyncResult  asyncResult;
            AsyncCallback asyncCallback = new AsyncCallback(startCallback);

            asyncResult = startDelegate.BeginInvoke(asyncCallback, startDelegate);
        }
Example #2
0
        public void StartChecking()
        {
            _running = true;
            StartDelegate sd = new StartDelegate(Start);

            sd.BeginInvoke((ar) =>
            {
                Debug.WriteLine("All tasks started!");
            }, null);
        }
Example #3
0
 private void PerformValidation(Schema schema)
 {
     try
     {
         _evaluationctx.Schema = schema;
         //_evaluationctx.Start();
         StartDelegate st = new StartDelegate(_evaluationctx.Start);
         WaitHandle    wh = st.BeginInvoke(new AsyncCallback(EndValidation),
                                           _evaluationctx).AsyncWaitHandle;
         wh.WaitOne();
     }
     catch (Exception ex)
     {
         System.Diagnostics.Debug.Fail(ex.Message, ex.ToString());
         throw ex;
     }
 }
        /// <summary>
        /// Starts a process asynchronously so the GUI thread isn't tied up waiting
        /// for the app to start (the app could be the Flash IDE for instance).
        /// </summary>
        public static void StartAsync(string path)
        {
            StartDelegate del = new StartDelegate(Start);

            del.BeginInvoke(path, null, null);
        }
Example #5
0
        public void StartAsync(BackupDataSource source, BackupDataSource destination)
        {
            StartDelegate startDelegate = new StartDelegate(StartInternal);

            startDelegate.BeginInvoke(source, destination, OnError, null, null);
        }
Example #6
0
 public void StartAsync(BackupDataSource source, BackupDataSource destination)
 {
     StartDelegate startDelegate = new StartDelegate(StartInternal);
     startDelegate.BeginInvoke(source, destination, OnError, null, null);
 }
Example #7
0
 /// <summary>
 ///     Start transforming all work items in the queue async. The 
 ///     <see cref="ProcessingCompleted" /> event will fire when done.
 /// </summary>
 public void StartAsync()
 {
     StartDelegate startDelegate = new StartDelegate(Start);
     IAsyncResult asyncResult;
     AsyncCallback asyncCallback = new AsyncCallback(startCallback);
     asyncResult = startDelegate.BeginInvoke(asyncCallback, startDelegate);
 }
Example #8
0
		/// <summary>
		/// Starts a process asynchronously so the GUI thread isn't tied up waiting
		/// for the app to start (the app could be the Flash IDE for instance).
		/// </summary>
		public static void StartAsync(string path)
		{
			StartDelegate del = new StartDelegate(Start);
			del.BeginInvoke(path,null,null);
		}