2 writes to Store
System.Activities.DurableInstancing (2)
System\Activities\DurableInstancing\SqlWorkflowInstanceStoreAsyncResult.cs (2)
55
this.
Store
= store;
268
this.
Store
= null;
45 references to Store
System.Activities.DurableInstancing (45)
System\Activities\DurableInstancing\CreateWorkflowOwnerAsyncResult.cs (10)
50
SqlConnectionStringBuilder builder = new SqlConnectionStringBuilder(base.
Store
.CachedConnectionString);
68
double lockTimeout = base.
Store
.BufferedHostLockRenewalPeriod.TotalSeconds;
86
ArraySegment<byte>[] properties = SerializationUtilities.SerializePropertyBag(commandMetadata, base.
Store
.InstanceEncodingOption);
90
parameters.Add(new SqlParameter { ParameterName = "@workflowHostType", SqlDbType = SqlDbType.UniqueIdentifier, Value = (base.
Store
.WorkflowHostType != Guid.Empty) ? base.
Store
.WorkflowHostType : (object) DBNull.Value });
91
parameters.Add(new SqlParameter { ParameterName = "@enqueueCommand", SqlDbType = SqlDbType.Bit, Value = base.
Store
.EnqueueRunCommands });
92
parameters.Add(new SqlParameter { ParameterName = "@deleteInstanceOnCompletion", SqlDbType = SqlDbType.Bit, Value = (base.
Store
.InstanceCompletionAction == InstanceCompletionAction.DeleteAll) });
97
parameters.Add(new SqlParameter { ParameterName = "@encodingOption", SqlDbType = SqlDbType.TinyInt, Value = base.
Store
.InstanceEncodingOption });
102
Fx.Assert(base.
Store
.DatabaseVersion >= StoreUtilities.Version45, "Should never get here if the db version isn't 4.5 or higher");
157
base.
Store
.WorkflowHostType = new Guid(HashHelper.ComputeHash(workflowHostTypeBuffer));
System\Activities\DurableInstancing\DetectActivatableWorkflowsAsyncResult.cs (3)
38
SqlConnectionStringBuilder builder = new SqlConnectionStringBuilder(base.
Store
.CachedConnectionString);
70
base.
Store
.UpdateEventStatus(true, HasActivatableWorkflowEvent.Value);
74
base.
Store
.UpdateEventStatus(false, HasActivatableWorkflowEvent.Value);
System\Activities\DurableInstancing\DetectRunnableInstancesAsyncResult.cs (5)
38
SqlConnectionStringBuilder builder = new SqlConnectionStringBuilder(base.
Store
.CachedConnectionString);
46
sqlCommand.Parameters.Add(new SqlParameter { ParameterName = "@workflowHostType", SqlDbType = SqlDbType.UniqueIdentifier, Value = base.
Store
.WorkflowHostType });
47
if (base.
Store
.DatabaseVersion >= StoreUtilities.Version45)
89
base.
Store
.UpdateEventStatus(true, HasRunnableWorkflowEvent.Value);
93
base.
Store
.UpdateEventStatus(false, HasRunnableWorkflowEvent.Value);
System\Activities\DurableInstancing\ExtendLockAsyncResult.cs (2)
37
SqlConnectionStringBuilder builder = new SqlConnectionStringBuilder(base.
Store
.CachedConnectionString);
46
double lockTimeout = base.
Store
.BufferedHostLockRenewalPeriod.TotalSeconds;
System\Activities\DurableInstancing\LoadWorkflowAsyncResult.cs (1)
72
parameters.Add(new SqlParameter { ParameterName = "@encodingOption", SqlDbType = SqlDbType.TinyInt, Value = base.
Store
.InstanceEncodingOption });
System\Activities\DurableInstancing\LoadWorkflowByKeyAsyncResult.cs (1)
34
List<CorrelationKey> keysToAssociate = CorrelationKey.BuildKeyList(keyLoadCommand.InstanceKeysToAssociate, base.
Store
.InstanceEncodingOption);
System\Activities\DurableInstancing\QueryActivatableWorkflowAsyncResult.cs (1)
57
base.
Store
.UpdateEventStatus(false, HasActivatableWorkflowEvent.Value);
System\Activities\DurableInstancing\RecoverInstanceLocksAsyncResult.cs (1)
37
SqlConnectionStringBuilder builder = new SqlConnectionStringBuilder(base.
Store
.CachedConnectionString);
System\Activities\DurableInstancing\SaveWorkflowAsyncResult.cs (8)
89
if (base.
Store
.DatabaseVersion >= StoreUtilities.Version45)
477
if (saveWorkflowCommand.CompleteInstance && base.
Store
.InstanceCompletionAction == InstanceCompletionAction.DeleteAll)
498
List<CorrelationKey> keysToAssociate = CorrelationKey.BuildKeyList(saveWorkflowCommand.InstanceKeysToAssociate, base.
Store
.InstanceEncodingOption);
501
ArraySegment<byte>[] dataProperties = SerializationUtilities.SerializePropertyBag(saveWorkflowCommand.InstanceData, base.
Store
.InstanceEncodingOption);
502
ArraySegment<byte> metadataProperties = SerializationUtilities.SerializeMetadataPropertyBag(saveWorkflowCommand, base.InstancePersistenceContext, base.
Store
.InstanceEncodingOption);
513
parameters.Add(new SqlParameter { ParameterName = "@encodingOption", SqlDbType = SqlDbType.TinyInt, Value = base.
Store
.InstanceEncodingOption });
536
foreach (KeyValuePair<string, Tuple<List<XName>, List<XName>>> promotion in base.
Store
.Promotions)
579
IObjectSerializer serializer = ObjectSerializerFactory.GetObjectSerializer(base.
Store
.InstanceEncodingOption);
System\Activities\DurableInstancing\SqlWorkflowInstanceStoreAsyncResult.cs (2)
66
return this.
Store
.CachedConnectionString;
327
if (this.
Store
.IsLockRetryEnabled() && (exception is InstanceLockedException))
System\Activities\DurableInstancing\TestVersionAndRunAsyncResult.cs (7)
43
if (this.
Store
.DatabaseVersion != null)
81
this.
Store
.DatabaseVersion = GetVersion(reader) ?? StoreUtilities.Version40;
114
this.
Store
.DatabaseVersion = StoreUtilities.Version40;
126
thisPtr.
Store
.EndTryCommand(result);
173
if (this.
Store
.DatabaseVersion >= this.targetVersion)
175
this.
Store
.BeginTryCommandInternal(this.InstancePersistenceContext, this.InstancePersistenceCommand, this.currentTransaction, this.TimeoutHelper.RemainingTime(), instanceCommandCompleteCallback, this);
179
throw FxTrace.Exception.AsError(new InstancePersistenceCommandException(SR.DatabaseUpgradeRequiredForCommand(this.
Store
.DatabaseVersion, this.InstancePersistenceCommand, this.targetVersion)));
System\Activities\DurableInstancing\TryLoadRunnableWorkflowAsyncResult.cs (4)
31
if (base.
Store
.WorkflowHostType == Guid.Empty)
42
command.Parameters.Add(new SqlParameter { ParameterName = "@workflowHostType", SqlDbType = SqlDbType.UniqueIdentifier, Value = base.
Store
.WorkflowHostType });
46
command.Parameters.Add(new SqlParameter { ParameterName = "@encodingOption", SqlDbType = SqlDbType.TinyInt, Value = base.
Store
.InstanceEncodingOption });
64
base.
Store
.UpdateEventStatus(false, HasRunnableWorkflowEvent.Value);