/// <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); }
public void StartChecking() { _running = true; StartDelegate sd = new StartDelegate(Start); sd.BeginInvoke((ar) => { Debug.WriteLine("All tasks started!"); }, null); }
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); }
public void StartAsync(BackupDataSource source, BackupDataSource destination) { StartDelegate startDelegate = new StartDelegate(StartInternal); startDelegate.BeginInvoke(source, destination, OnError, null, null); }
/// <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); }