private IDisposable SyncTestInput(Action <int> resultHandler, Action <Exception> exceptionHandler) { resultHandler(MagicValue); var result = new DummyAsyncResult(); return(result); }
private IDisposable SyncErrorInput(Action <int> resultHandler, Action <Exception> exceptionHandler) { exceptionHandler(new NotSupportedException()); var result = new DummyAsyncResult(); return(result); }
private IAsyncResult SyncTestInput(Action <int> resultHandler, Action <Exception> exceptionHandler) { resultHandler(MagicValue); var result = new DummyAsyncResult(); result.MarkCompletedSync(); return(result); }
private IAsyncResult SyncErrorInput(Action <int> resultHandler, Action <Exception> exceptionHandler) { exceptionHandler(new NotSupportedException()); var result = new DummyAsyncResult(); result.MarkCompletedSync(); return(result); }
private IDisposable AsyncTestInput(Action<int> resultHandle, Action<Exception> exceptionHandler) { var result = new DummyAsyncResult(); Deployment.Current.Dispatcher.BeginInvoke(() => { resultHandle(MagicValue); }); return result; }
private IDisposable AsyncTestInput(Action <int> resultHandle, Action <Exception> exceptionHandler) { var result = new DummyAsyncResult(); Deployment.Current.Dispatcher.BeginInvoke(() => { resultHandle(MagicValue); }); return(result); }
private IDisposable SyncErrorInput(Action<int> resultHandler, Action<Exception> exceptionHandler) { exceptionHandler(new NotSupportedException()); var result = new DummyAsyncResult(); return result; }
private IDisposable SyncTestInput(Action<int> resultHandler, Action<Exception> exceptionHandler) { resultHandler(MagicValue); var result = new DummyAsyncResult(); return result; }
private IAsyncResult SyncErrorInput(Action<int> resultHandler, Action<Exception> exceptionHandler) { exceptionHandler(new NotSupportedException()); var result = new DummyAsyncResult(); result.MarkCompletedSync(); return result; }
private IAsyncResult SyncTestInput(Action<int> resultHandler, Action<Exception> exceptionHandler) { resultHandler(MagicValue); var result = new DummyAsyncResult(); result.MarkCompletedSync(); return result; }