2 writes to InstancePersistenceContext
System.Activities.DurableInstancing (2)
System\Activities\DurableInstancing\SqlWorkflowInstanceStoreAsyncResult.cs (2)
53this.InstancePersistenceContext = context; 267this.InstancePersistenceContext = null;
56 references to InstancePersistenceContext
System.Activities.DurableInstancing (56)
System\Activities\DurableInstancing\CreateWorkflowOwnerAsyncResult.cs (4)
125base.InstancePersistenceContext.BindInstanceOwner(this.lockOwnerId, this.lockOwnerId); 131base.InstancePersistenceContext.BindEvent(HasActivatableWorkflowEvent.Value); 135base.InstancePersistenceContext.BindEvent(HasRunnableWorkflowEvent.Value); 138base.StoreLock.MarkInstanceOwnerCreated(this.lockOwnerId, surrogateLockOwnerId, base.InstancePersistenceContext.InstanceHandle, this.fireRunnableInstancesEvent, this.fireActivatableInstancesEvent);
System\Activities\DurableInstancing\DeleteWorkflowOwnerAsyncResult.cs (1)
58base.InstancePersistenceContext.InstanceHandle.Free();
System\Activities\DurableInstancing\LoadWorkflowAsyncResult.cs (15)
69parameters.Add(new SqlParameter { ParameterName = "@handleInstanceVersion", SqlDbType = SqlDbType.BigInt, Value = base.InstancePersistenceContext.InstanceVersion }); 70parameters.Add(new SqlParameter { ParameterName = "@handleIsBoundToLock", SqlDbType = SqlDbType.Bit, Value = base.InstancePersistenceContext.InstanceView.IsBoundToLock }); 82Guid instanceId = base.InstancePersistenceContext.InstanceView.InstanceId; 117if (!base.InstancePersistenceContext.InstanceView.IsBoundToInstance) 119base.InstancePersistenceContext.BindInstance(instanceId); 121if (!base.InstancePersistenceContext.InstanceView.IsBoundToInstanceOwner) 123base.InstancePersistenceContext.BindInstanceOwner(base.StoreLock.LockOwnerId, base.StoreLock.LockOwnerId); 125if (!base.InstancePersistenceContext.InstanceView.IsBoundToLock) 127InstanceLockTracking instanceLockTracking = (InstanceLockTracking)(base.InstancePersistenceContext.UserContext); 129base.InstancePersistenceContext.BindAcquiredLock(version); 149base.InstancePersistenceContext.AssociatedInstanceKey(loadByKeycommand.LookupInstanceKey); 158base.InstancePersistenceContext.AssociatedInstanceKey(keyEntry.Key); 164base.InstancePersistenceContext.WroteInstanceKeyMetadataValue(keyEntry.Key, property.Key, property.Value); 170base.InstancePersistenceContext.LoadedInstance 181base.InstancePersistenceContext.InstanceHandle.Free();
System\Activities\DurableInstancing\QueryActivatableWorkflowAsyncResult.cs (1)
60base.InstancePersistenceContext.QueriedInstanceStore(new ActivatableWorkflowsQueryResult(activationParametersList));
System\Activities\DurableInstancing\SaveWorkflowAsyncResult.cs (16)
74parameters.Add(new SqlParameter { ParameterName = "@instanceId", SqlDbType = SqlDbType.UniqueIdentifier, Value = base.InstancePersistenceContext.InstanceView.InstanceId }); 76parameters.Add(new SqlParameter { ParameterName = "@handleInstanceVersion", SqlDbType = SqlDbType.BigInt, Value = base.InstancePersistenceContext.InstanceVersion }); 77parameters.Add(new SqlParameter { ParameterName = "@handleIsBoundToLock", SqlDbType = SqlDbType.Bit, Value = base.InstancePersistenceContext.InstanceView.IsBoundToLock }); 141InstanceLockTracking instanceLockTracking = (InstanceLockTracking)(base.InstancePersistenceContext.UserContext); 151if (!base.InstancePersistenceContext.InstanceView.IsBoundToLock) 154instanceLockTracking.TrackStoreLock(base.InstancePersistenceContext.InstanceView.InstanceId, instanceVersion, this.DependentTransaction); 155base.InstancePersistenceContext.BindAcquiredLock(instanceVersion); 160base.InstancePersistenceContext.PersistedInstance(saveWorkflowCommand.InstanceData); 163SaveWorkflowAsyncResult.UpdateKeyData(base.InstancePersistenceContext, saveWorkflowCommand); 167base.InstancePersistenceContext.WroteInstanceMetadataValue(property.Key, property.Value); 172base.InstancePersistenceContext.CompletedInstance(); 178base.InstancePersistenceContext.InstanceHandle.Free(); 183base.InstancePersistenceContext.InstanceHandle.Free(); 502ArraySegment<byte> metadataProperties = SerializationUtilities.SerializeMetadataPropertyBag(saveWorkflowCommand, base.InstancePersistenceContext, base.Store.InstanceEncodingOption); 504bool metadataConsistency = (base.InstancePersistenceContext.InstanceView.InstanceMetadataConsistency == InstanceValueConsistency.None); 598parameters.Add(new SqlParameter() { SqlDbType = SqlDbType.UniqueIdentifier, ParameterName = instanceIdArgument, Value = base.InstancePersistenceContext.InstanceView.InstanceId });
System\Activities\DurableInstancing\SqlWorkflowInstanceStoreAsyncResult.cs (16)
174thisPtr.InstancePersistenceContext.EndBindReclaimedLock(result); 175Guid instanceId = thisPtr.InstancePersistenceContext.InstanceView.InstanceId; 176long lockVersion = thisPtr.InstancePersistenceContext.InstanceVersion; 178InstanceLockTracking instanceLockTracking = (InstanceLockTracking)(thisPtr.InstancePersistenceContext.UserContext); 180thisPtr.InstancePersistenceContext.InstanceHandle.Free(); 208Guid instanceId = (thisPtr.InstancePersistenceContext != null) ? thisPtr.InstancePersistenceContext.InstanceView.InstanceId : Guid.Empty; 217if (!thisPtr.InstancePersistenceContext.InstanceView.IsBoundToInstance) 219thisPtr.InstancePersistenceContext.BindInstance(alreadyLockedException.InstanceId); 222IAsyncResult bindReclaimedAsyncResult = thisPtr.InstancePersistenceContext.BeginBindReclaimedLock(reclaimLockAtVersion, thisPtr.TimeoutHelper.RemainingTime(), thisPtr.PrepareAsyncCompletion(SqlWorkflowInstanceStoreAsyncResult.onBindReclaimed), thisPtr); 274Guid instanceId = (this.InstancePersistenceContext != null) ? this.InstancePersistenceContext.InstanceView.InstanceId : Guid.Empty; 286(this.InstancePersistenceContext != null) ? this.InstancePersistenceContext.EventTraceActivity : null, 334TD.FoundProcessingError((this.InstancePersistenceContext != null) ? this.InstancePersistenceContext.EventTraceActivity : null,
System\Activities\DurableInstancing\TestVersionAndRunAsyncResult.cs (1)
175this.Store.BeginTryCommandInternal(this.InstancePersistenceContext, this.InstancePersistenceCommand, this.currentTransaction, this.TimeoutHelper.RemainingTime(), instanceCommandCompleteCallback, this);
System\Activities\DurableInstancing\TryLoadRunnableWorkflowAsyncResult.cs (2)
44command.Parameters.Add(new SqlParameter { ParameterName = "@handleInstanceVersion", SqlDbType = SqlDbType.BigInt, Value = base.InstancePersistenceContext.InstanceVersion }); 45command.Parameters.Add(new SqlParameter { ParameterName = "@handleIsBoundToLock", SqlDbType = SqlDbType.Bit, Value = base.InstancePersistenceContext.InstanceView.IsBoundToLock });