Esempio n. 1
0
            protected override void ReleaseToPool(ActivityExecutor executor)
            {
                base.ClearForReuse();
                _callbackWrapper   = null;
                _completedInstance = null;

                executor.CompletionWorkItemPool.Release(this);
            }
Esempio n. 2
0
 public CompletionBookmark(CompletionCallbackWrapper callbackWrapper)
 {
     this.callbackWrapper = callbackWrapper;
 }
Esempio n. 3
0
 public CompletionWithCancelationCheckWorkItem(CompletionCallbackWrapper callbackWrapper, ActivityInstance completedInstance)
     : base(callbackWrapper, completedInstance)
 {
 }
Esempio n. 4
0
 public void Initialize(CompletionCallbackWrapper callbackWrapper, ActivityInstance completedInstance)
 {
     base.Reinitialize(callbackWrapper.ActivityInstance);
     _callbackWrapper   = callbackWrapper;
     _completedInstance = completedInstance;
 }
Esempio n. 5
0
 // Only used by non-pooled base classes.
 protected CompletionWorkItem(CompletionCallbackWrapper callbackWrapper, ActivityInstance completedInstance)
     : base(callbackWrapper.ActivityInstance)
 {
     _callbackWrapper   = callbackWrapper;
     _completedInstance = completedInstance;
 }