Ejemplo n.º 1
0
        public void Complete(bool completedSynchronously, ErrorState errorState)
        {
            _errorState = errorState;

            CompletedSynchronously = completedSynchronously;

            _isCompleted = true;
            try
            {
                Interlocked.Exchange(ref _callback, SecondAsyncCallback).Invoke(this);
            }
            catch (Exception ex)
            {
                Trace.WriteError(Resources.Trace_OwinCallContextCallbackException, ex);
            }
        }
Ejemplo n.º 2
0
 public void Fail(ErrorState error)
 {
     _error = error;
     TryComplete();
 }
Ejemplo n.º 3
0
 private void Complete(ErrorState errorState)
 {
     AsyncResult.Complete(_completedSynchronouslyThreadId == Thread.CurrentThread.ManagedThreadId, errorState);
 }
Ejemplo n.º 4
0
 internal void Complete(bool sync, ErrorState errorState)
 {
     AbortIfHeaderSent();
     AsyncResult.Complete(sync, errorState);
 }