protected override void ReleaseToPool(ActivityExecutor executor)
 {
     base.ClearForReuse();
     this.callbackWrapper   = null;
     this.completedInstance = null;
     executor.CompletionWorkItemPool.Release(this);
 }
Ejemplo n.º 2
0
 public CompletionWithCancelationCheckWorkItem(CompletionCallbackWrapper callbackWrapper, ActivityInstance completedInstance)
     : base(callbackWrapper, completedInstance)
 {
 }
Ejemplo n.º 3
0
 public void Initialize(CompletionCallbackWrapper callbackWrapper, ActivityInstance completedInstance)
 {
     base.Reinitialize(callbackWrapper.ActivityInstance);
     this.callbackWrapper   = callbackWrapper;
     this.completedInstance = completedInstance;
 }
Ejemplo n.º 4
0
 // Only used by non-pooled base classes.
 protected CompletionWorkItem(CompletionCallbackWrapper callbackWrapper, ActivityInstance completedInstance)
     : base(callbackWrapper.ActivityInstance)
 {
     this.callbackWrapper   = callbackWrapper;
     this.completedInstance = completedInstance;
 }
 public CompletionBookmark(CompletionCallbackWrapper callbackWrapper)
 {
     this.callbackWrapper = callbackWrapper;
 }
 public CompletionBookmark(CompletionCallbackWrapper callbackWrapper)
 {
     this.callbackWrapper = callbackWrapper;
 }
 public CompletionWithCancelationCheckWorkItem(CompletionCallbackWrapper callbackWrapper, ActivityInstance completedInstance)
     : base(callbackWrapper, completedInstance)
 {
 }
 protected override void ReleaseToPool(ActivityExecutor executor)
 {
     base.ClearForReuse();
     this.callbackWrapper = null;
     this.completedInstance = null;
 
     executor.CompletionWorkItemPool.Release(this);
 }
 public void Initialize(CompletionCallbackWrapper callbackWrapper, ActivityInstance completedInstance)
 {
     base.Reinitialize(callbackWrapper.ActivityInstance);
     this.callbackWrapper = callbackWrapper;
     this.completedInstance = completedInstance;
 }
 // Only used by non-pooled base classes.
 protected CompletionWorkItem(CompletionCallbackWrapper callbackWrapper, ActivityInstance completedInstance)
     : base(callbackWrapper.ActivityInstance)
 {
     this.callbackWrapper = callbackWrapper;
     this.completedInstance = completedInstance;
 }