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

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