Exemplo n.º 1
0
 protected void OnCompleted(GenerationCompletedEventArgs e)
 {
     if (Completed != null)
     {
         Completed(this, e);
     }
 }
Exemplo n.º 2
0
        private void CompletionMethod(Exception exception, bool canceled, AsyncOperation asyncOp)
        {
            if (!canceled)
            {
                lock (userStateToLifetime.SyncRoot)
                {
                    userStateToLifetime.Remove(asyncOp.UserSuppliedState);
                }
            }

            GenerationCompletedEventArgs e = new GenerationCompletedEventArgs(
                exception,
                canceled,
                asyncOp.UserSuppliedState);

            asyncOp.PostOperationCompleted(onCompletedDelegate, e);
        }
Exemplo n.º 3
0
 protected void OnCompleted(GenerationCompletedEventArgs e)
 {
     if (Completed != null) Completed(this, e);
 }
Exemplo n.º 4
0
        private void GenerateCompleted(object operationState)
        {
            GenerationCompletedEventArgs e = operationState as GenerationCompletedEventArgs;

            OnCompleted(e);
        }
Exemplo n.º 5
0
        private void CompletionMethod(Exception exception,bool canceled,AsyncOperation asyncOp)
        {
            if (!canceled)
            {
                lock (userStateToLifetime.SyncRoot)
                {
                    userStateToLifetime.Remove(asyncOp.UserSuppliedState);
                }
            }

            GenerationCompletedEventArgs e = new GenerationCompletedEventArgs(
                exception,
                canceled,
                asyncOp.UserSuppliedState);

            asyncOp.PostOperationCompleted(onCompletedDelegate, e);
        }