示例#1
0
        private IDisposable SyncTestInput(Action <int> resultHandler, Action <Exception> exceptionHandler)
        {
            resultHandler(MagicValue);
            var result = new DummyAsyncResult();

            return(result);
        }
示例#2
0
        private IDisposable SyncErrorInput(Action <int> resultHandler, Action <Exception> exceptionHandler)
        {
            exceptionHandler(new NotSupportedException());
            var result = new DummyAsyncResult();

            return(result);
        }
示例#3
0
        private IAsyncResult SyncTestInput(Action <int> resultHandler, Action <Exception> exceptionHandler)
        {
            resultHandler(MagicValue);
            var result = new DummyAsyncResult();

            result.MarkCompletedSync();
            return(result);
        }
示例#4
0
        private IAsyncResult SyncErrorInput(Action <int> resultHandler, Action <Exception> exceptionHandler)
        {
            exceptionHandler(new NotSupportedException());
            var result = new DummyAsyncResult();

            result.MarkCompletedSync();
            return(result);
        }
示例#5
0
        private IDisposable AsyncTestInput(Action<int> resultHandle, Action<Exception> exceptionHandler)
        {
            var result = new DummyAsyncResult();

            Deployment.Current.Dispatcher.BeginInvoke(() =>
            {
                resultHandle(MagicValue);
            });
            return result;
        }
示例#6
0
        private IDisposable AsyncTestInput(Action <int> resultHandle, Action <Exception> exceptionHandler)
        {
            var result = new DummyAsyncResult();

            Deployment.Current.Dispatcher.BeginInvoke(() =>
            {
                resultHandle(MagicValue);
            });
            return(result);
        }
示例#7
0
 private IDisposable SyncErrorInput(Action<int> resultHandler, Action<Exception> exceptionHandler)
 {
     exceptionHandler(new NotSupportedException());
     var result = new DummyAsyncResult();
     return result;
 }
示例#8
0
 private IDisposable SyncTestInput(Action<int> resultHandler, Action<Exception> exceptionHandler)
 {
     resultHandler(MagicValue);
     var result = new DummyAsyncResult();
     return result;
 }
示例#9
0
 private IAsyncResult SyncErrorInput(Action<int> resultHandler, Action<Exception> exceptionHandler)
 {
     exceptionHandler(new NotSupportedException());
     var result = new DummyAsyncResult();
     result.MarkCompletedSync();
     return result;
 }
示例#10
0
 private IAsyncResult SyncTestInput(Action<int> resultHandler, Action<Exception> exceptionHandler)
 {
     resultHandler(MagicValue);
     var result = new DummyAsyncResult();
     result.MarkCompletedSync();
     return result;
 }