1 write to instance
System.Activities (1)
System\Activities\WorkflowApplication.cs (1)
3450
this.
instance
= instance;
38 references to instance
System.Activities (38)
System\Activities\WorkflowApplication.cs (38)
3476
Fx.Assert(this.
instance
.Controller.IsPersistable, "The runtime won't schedule this work item unless we've passed the guard");
3490
if (this.
instance
.WaitForTurnAsync(this.instanceOperation, this.timeoutHelper.RemainingTime(), waitCompleteCallback, this))
3532
this.
instance
.ValidateStateForUnload();
3533
alreadyUnloaded = this.
instance
.state == WorkflowApplicationState.Unloaded;
3537
this.
instance
.ValidateStateForPersist();
3586
if (this.operation == PersistenceOperation.Unload && this.
instance
.Controller.State == WorkflowInstanceState.Complete)
3591
if (this.
instance
.HasPersistenceProvider && !this.
instance
.persistenceManager.IsInitialized)
3593
IAsyncResult result = this.
instance
.persistenceManager.BeginInitialize(this.
instance
.DefinitionIdentity, this.timeoutHelper.RemainingTime(),
3606
thisPtr.
instance
.persistenceManager.EndInitialize(result);
3612
if (this.
instance
.HasPersistenceProvider && !this.
instance
.persistenceManager.IsLocked && this.dependentTransaction != null)
3614
IAsyncResult result = this.
instance
.persistenceManager.BeginEnsureReadyness(this.timeoutHelper.RemainingTime(),
3627
thisPtr.
instance
.persistenceManager.EndEnsureReadyness(result);
3640
this.
instance
.NotifyOperationComplete(localInstanceOperation);
3648
if (this.
instance
.HasPersistenceProvider)
3652
this.
instance
.TrackPersistence(this.operation);
3655
if (this.
instance
.Controller.HasPendingTrackingRecords)
3671
IAsyncResult result = this.
instance
.Controller.BeginFlushTrackingRecords(flushTrackingRecordsTimeout, PrepareAsyncCompletion(trackingCompleteCallback), this);
3681
thisPtr.
instance
.Controller.EndFlushTrackingRecords(result);
3690
if (this.
instance
.HasPersistenceModule)
3692
IEnumerable<IPersistencePipelineModule> modules = this.
instance
.GetExtensions<IPersistencePipelineModule>();
3693
this.pipeline = new PersistencePipeline(modules, PersistenceManager.GenerateInitialData(this.
instance
));
3708
if (this.
instance
.HasPersistenceProvider)
3725
this.data = PersistenceManager.GenerateInitialData(this.
instance
);
3736
result = this.
instance
.persistenceManager.BeginSave(this.data, this.operation, this.timeoutHelper.RemainingTime(), PrepareAsyncCompletion(persistedCallback), this);
3755
thisPtr.
instance
.persistenceManager.EndSave(result);
3781
this.
instance
.persistencePipelineInUse = this.pipeline;
3783
if (this.
instance
.state == WorkflowApplicationState.Aborted)
3797
this.
instance
.persistencePipelineInUse = null;
3824
thisPtr.
instance
.persistencePipelineInUse = null;
3867
if (this.
instance
.HasPersistenceProvider && this.
instance
.persistenceManager.OwnerWasCreated &&
3875
deleteOwnerResult = this.
instance
.persistenceManager.BeginDeleteOwner(this.timeoutHelper.RemainingTime(),
3889
thisPtr.
instance
.persistenceManager.EndDeleteOwner(result);
3902
this.
instance
.state = WorkflowApplicationState.Paused;
3907
this.
instance
.MarkUnloaded();