1 write to instance
System.ServiceModel.Activities (1)
System\ServiceModel\Activities\Dispatcher\WorkflowServiceInstance.cs (1)
3005
this.
instance
= instance;
28 references to instance
System.ServiceModel.Activities (28)
System\ServiceModel\Activities\Dispatcher\WorkflowServiceInstance.cs (28)
3049
IAsyncResult result = this.
instance
.BeginAcquireLockOnIdle(timeoutHelper.RemainingTime(), ref this.ownsLock, PrepareAsyncCompletion(handleEndLockAcquired), this);
3055
IAsyncResult result = this.
instance
.BeginTryAcquireReference(timeoutHelper.RemainingTime(), PrepareAsyncCompletion(handleEndReferenceAcquired), this);
3062
thisPtr.referenceAcquired = thisPtr.
instance
.EndTryAcquireReference(result);
3078
lock (this.
instance
.thisLock)
3080
if (!this.
instance
.isWorkflowServiceInstanceReady)
3083
if (this.
instance
.workflowServiceInstanceReadyWaitHandle == null)
3085
this.
instance
.workflowServiceInstanceReadyWaitHandle = new AsyncWaitHandle(EventResetMode.ManualReset);
3097
if (this.
instance
.workflowServiceInstanceReadyWaitHandle.WaitAsync(workflowServiceInstanceReadyCallback, this, this.timeoutHelper.RemainingTime()))
3161
thisPtr.
instance
.EndAcquireLockOnIdle(result);
3165
thisPtr.
instance
.EndAcquireLockOnIdle(result, ref thisPtr.ownsLock);
3181
if (this.isResumeProtocolBookmark && this.
instance
.BufferedReceiveManager == null)
3183
this.
instance
.ValidateStateForResumeProtocolBookmark();
3187
if (this.
instance
.AreBookmarksInvalid(out this.resumptionResult))
3197
bool bufferedReceiveEnabled = this.isResumeProtocolBookmark && this.
instance
.BufferedReceiveManager != null;
3198
this.resumptionResult = this.
instance
.ResumeProtocolBookmarkCore(this.bookmark, this.value, this.bookmarkScope, bufferedReceiveEnabled, ref this.waitHandle, ref this.ownsLock);
3199
if (this.resumptionResult == BookmarkResumptionResult.NotReady && !bufferedReceiveEnabled && (this.
instance
.serviceHost.FilterResumeTimeout.TotalSeconds > 0))
3233
if (this.
instance
.Controller.HasPendingTrackingRecords)
3237
IAsyncResult result = this.
instance
.Controller.BeginFlushTrackingRecords(this.
instance
.trackTimeout, PrepareAsyncCompletion(handleEndTrack), this);
3247
thisPtr.
instance
.Controller.EndFlushTrackingRecords(result);
3251
thisPtr.
instance
.ReleaseLock(ref thisPtr.ownsLock);
3255
thisPtr.
instance
.ReleaseReference();
3267
lock (thisPtr.
instance
.activeOperationsLock)
3272
if (thisPtr.
instance
.nextIdleWaiters.Remove(thisPtr.waitHandle) || thisPtr.
instance
.idleWaiters.Remove(thisPtr.waitHandle))
3302
thisPtr.
instance
.ReleaseLock(ref thisPtr.ownsLock);
3319
thisPtr.
instance
.ReleaseLock(ref thisPtr.ownsLock);
3326
thisPtr.
instance
.ReleaseReference();