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