61 instantiations of InstanceValue
System.Activities (20)
System\Activities\WorkflowApplication.cs (20)
340
this.instanceMetadata[pair.Key] = new
InstanceValue
(pair.Value, InstanceValueOptions.Optional | InstanceValueOptions.WriteOnly);
1574
{ WorkflowNamespace.WorkflowHostType, new
InstanceValue
(Workflow45Namespace.WorkflowApplication) },
1575
{ Workflow45Namespace.DefinitionIdentities, new
InstanceValue
(new Collection<WorkflowIdentity> { definitionIdentity }) },
1576
{ Workflow45Namespace.DefinitionIdentityFilter, new
InstanceValue
(identityFilter) },
2876
this.instanceMetadata.Add(WorkflowNamespace.WorkflowHostType, new
InstanceValue
(Workflow45Namespace.WorkflowApplication));
2879
new
InstanceValue
(this.DefinitionIdentity, InstanceValueOptions.Optional);
2889
{ Workflow45Namespace.DefinitionIdentity, new
InstanceValue
(this.DefinitionIdentity, InstanceValueOptions.Optional) }
5641
this.instanceMetadata[PersistenceMetadataNamespace.InstanceType] = new
InstanceValue
(WorkflowNamespace.WorkflowHostType, InstanceValueOptions.WriteOnly);
5842
data[WorkflowNamespace.Bookmarks] = new
InstanceValue
(instance.Controller.GetBookmarks(), InstanceValueOptions.WriteOnly | InstanceValueOptions.Optional);
5843
data[WorkflowNamespace.LastUpdate] = new
InstanceValue
(DateTime.UtcNow, InstanceValueOptions.WriteOnly | InstanceValueOptions.Optional);
5847
data[WorkflowNamespace.VariablesPath.GetName(mappedVariable.Key)] = new
InstanceValue
(mappedVariable.Value, InstanceValueOptions.WriteOnly | InstanceValueOptions.Optional);
5853
data[WorkflowNamespace.Workflow] = new
InstanceValue
(instance.Controller.PrepareForSerialization());
5854
data[WorkflowNamespace.Status] = new
InstanceValue
(instance.Controller.State == WorkflowInstanceState.Idle ? "Idle" : "Executing", InstanceValueOptions.WriteOnly);
5858
data[WorkflowNamespace.Workflow] = new
InstanceValue
(instance.Controller.PrepareForSerialization(), InstanceValueOptions.Optional);
5866
data[WorkflowNamespace.Status] = new
InstanceValue
("Faulted", InstanceValueOptions.WriteOnly);
5867
data[WorkflowNamespace.Exception] = new
InstanceValue
(completionException, InstanceValueOptions.WriteOnly | InstanceValueOptions.Optional);
5871
data[WorkflowNamespace.Status] = new
InstanceValue
("Closed", InstanceValueOptions.WriteOnly);
5876
data[WorkflowNamespace.OutputPath.GetName(output.Key)] = new
InstanceValue
(output.Value, InstanceValueOptions.WriteOnly | InstanceValueOptions.Optional);
5883
data[WorkflowNamespace.Status] = new
InstanceValue
("Canceled", InstanceValueOptions.WriteOnly);
5902
new
InstanceValue
(new Collection<WorkflowIdentity> { definitionIdentity }));
System.Activities.DurableInstancing (2)
System\Activities\DurableInstancing\SerializationUtilities.cs (2)
103
metadataProperties.Add(property.Key, new
InstanceValue
(property.Value));
250
properties.Add(property.Key, new
InstanceValue
(property.Value));
System.Runtime.DurableInstancing (4)
System\Runtime\DurableInstancing\InstanceValue.cs (1)
15
readonly static InstanceValue deletedValue = new
InstanceValue
();
System\Runtime\PersistencePipeline.cs (3)
90
this.values.Add(value.Key, new
InstanceValue
(value.Value));
104
this.values.Add(value.Key, new
InstanceValue
(value.Value, InstanceValueOptions.Optional | InstanceValueOptions.WriteOnly));
145
this.values.Add(value.Key, new
InstanceValue
(value.Value, InstanceValueOptions.Optional | InstanceValueOptions.WriteOnly));
System.ServiceModel (2)
System\ServiceModel\Channels\CorrelationKey.cs (2)
28
{ provider.GetName("KeyString"), new
InstanceValue
(keyString, InstanceValueOptions.Optional) },
29
{ WorkflowNamespace.KeyProvider, new
InstanceValue
(provider.NamespaceName, InstanceValueOptions.Optional) },
System.ServiceModel.Activities (33)
System\ServiceModel\Activities\Dispatcher\DurableInstanceManager.cs (13)
45
InstanceValue sentinel = new
InstanceValue
(XNamespace.Get("http://tempuri.org").GetName("Sentinel"));
48
this.instanceMetadataChanges.Add(PersistenceMetadataNamespace.InstanceType, new
InstanceValue
(WorkflowNamespace.WorkflowHostType, InstanceValueOptions.WriteOnly));
84
this.instanceOwnerMetadata.Add(property.Key, new
InstanceValue
(property.Value));
96
this.instanceOwnerMetadata.Add(property.Key, new
InstanceValue
(property.Value,
114
this.instanceMetadataChanges.Add(pair.Key, new
InstanceValue
(pair.Value, InstanceValueOptions.Optional | InstanceValueOptions.WriteOnly));
312
this.instanceOwnerMetadata[WorkflowNamespace.WorkflowHostType] = new
InstanceValue
(Host.DurableInstancingOptions.ScopeName);
313
this.instanceMetadataChanges[WorkflowNamespace.WorkflowHostType] = new
InstanceValue
(Host.DurableInstancingOptions.ScopeName);
319
this.instanceMetadataChanges[WorkflowServiceNamespace.Service] = new
InstanceValue
(Host.ServiceName, InstanceValueOptions.WriteOnly | InstanceValueOptions.Optional);
332
this.instanceOwnerMetadata.Add(WorkflowServiceNamespace.ControlEndpoint, new
InstanceValue
(endpoint.ListenUri));
340
this.instanceOwnerMetadata.Add(endpointName, new
InstanceValue
(endpoint.ListenUri));
360
this.instanceMetadataChanges[WorkflowServiceNamespace.SiteName] = new
InstanceValue
(siteName, InstanceValueOptions.WriteOnly | InstanceValueOptions.Optional);
361
this.instanceMetadataChanges[WorkflowServiceNamespace.RelativeApplicationPath] = new
InstanceValue
(virtualPathExtension.ApplicationVirtualPath, InstanceValueOptions.WriteOnly | InstanceValueOptions.Optional);
366
this.instanceMetadataChanges[WorkflowServiceNamespace.RelativeServicePath] = new
InstanceValue
(relativePath, InstanceValueOptions.WriteOnly | InstanceValueOptions.Optional);
System\ServiceModel\Activities\Dispatcher\PersistenceContext.cs (4)
711
saveCommand.InstanceMetadataChanges.Add(Workflow45Namespace.DefinitionIdentity, new
InstanceValue
(this.workflowInstance.DefinitionIdentity, InstanceValueOptions.None));
816
saveCommand.InstanceMetadataChanges.Add(WorkflowServiceNamespace.SuspendReason, new
InstanceValue
(this.persistenceContext.SuspendedReason));
1347
saveCommand.InstanceMetadataChanges[WorkflowServiceNamespace.SuspendReason] = new
InstanceValue
(reason.Message);
1348
saveCommand.InstanceMetadataChanges[WorkflowServiceNamespace.SuspendException] = new
InstanceValue
(reason, InstanceValueOptions.WriteOnly | InstanceValueOptions.Optional);
System\ServiceModel\Activities\Dispatcher\WorkflowServiceInstance.cs (12)
1523
data[WorkflowNamespace.Bookmarks] = new
InstanceValue
(Controller.GetBookmarks(), InstanceValueOptions.WriteOnly | InstanceValueOptions.Optional);
1524
data[WorkflowNamespace.LastUpdate] = new
InstanceValue
(DateTime.UtcNow, InstanceValueOptions.WriteOnly | InstanceValueOptions.Optional);
1528
data[WorkflowNamespace.VariablesPath.GetName(mappedVariable.Key)] = new
InstanceValue
(mappedVariable.Value, InstanceValueOptions.WriteOnly | InstanceValueOptions.Optional);
1534
data[WorkflowNamespace.Workflow] = new
InstanceValue
(Controller.PrepareForSerialization());
1538
data[WorkflowServiceNamespace.CreationContext] = new
InstanceValue
(this.creationContext);
1541
data[WorkflowNamespace.Status] = new
InstanceValue
(Controller.State == WorkflowInstanceState.Idle ? "Idle" : "Executing", InstanceValueOptions.WriteOnly);
1545
data[WorkflowNamespace.Workflow] = new
InstanceValue
(Controller.PrepareForSerialization(), InstanceValueOptions.Optional);
1551
data[WorkflowNamespace.Status] = new
InstanceValue
("Faulted", InstanceValueOptions.WriteOnly);
1552
data[WorkflowNamespace.Exception] = new
InstanceValue
(this.terminationException, InstanceValueOptions.WriteOnly | InstanceValueOptions.Optional);
1556
data[WorkflowNamespace.Status] = new
InstanceValue
("Closed", InstanceValueOptions.WriteOnly);
1561
data[WorkflowNamespace.OutputPath.GetName(output.Key)] = new
InstanceValue
(output.Value, InstanceValueOptions.WriteOnly | InstanceValueOptions.Optional);
1568
data[WorkflowNamespace.Status] = new
InstanceValue
("Canceled", InstanceValueOptions.WriteOnly);
System\ServiceModel\Activities\InternalSendMessage.cs (2)
768
{ WorkflowServiceNamespace.RequestReplyCorrelation, new
InstanceValue
(true) }
786
{ WorkflowServiceNamespace.RequestReplyCorrelation, new
InstanceValue
(true) }
System\ServiceModel\Activities\SerializableInstanceValue.cs (1)
56
return new
InstanceValue
(this.value, (InstanceValueOptions)this.options);
System\ServiceModel\Activities\WorkflowDefinitionProvider.cs (1)
72
metadataCollection.Add(Workflow45Namespace.DefinitionIdentities, new
InstanceValue
(identityCollection));
275 references to InstanceValue
System.Activities (63)
System\Activities\DurableInstancing\CreateWorkflowOwnerCommand.cs (3)
16
Dictionary<XName,
InstanceValue
> instanceOwnerMetadata;
23
public IDictionary<XName,
InstanceValue
> InstanceOwnerMetadata
29
this.instanceOwnerMetadata = new Dictionary<XName,
InstanceValue
>();
System\Activities\DurableInstancing\CreateWorkflowOwnerWithIdentityCommand.cs (3)
16
Dictionary<XName,
InstanceValue
> instanceOwnerMetadata;
23
public IDictionary<XName,
InstanceValue
> InstanceOwnerMetadata
29
this.instanceOwnerMetadata = new Dictionary<XName,
InstanceValue
>();
System\Activities\DurableInstancing\LoadWorkflowByInstanceKeyCommand.cs (4)
17
Dictionary<Guid, IDictionary<XName,
InstanceValue
>> keysToAssociate;
29
public IDictionary<Guid, IDictionary<XName,
InstanceValue
>> InstanceKeysToAssociate
35
this.keysToAssociate = new Dictionary<Guid, IDictionary<XName,
InstanceValue
>>();
90
foreach (KeyValuePair<Guid, IDictionary<XName,
InstanceValue
>> key in this.keysToAssociate)
System\Activities\DurableInstancing\SaveWorkflowCommand.cs (14)
17
Dictionary<Guid, IDictionary<XName,
InstanceValue
>> keysToAssociate;
21
Dictionary<XName,
InstanceValue
> instanceData;
23
Dictionary<XName,
InstanceValue
> instanceMetadataChanges;
24
Dictionary<Guid, IDictionary<XName,
InstanceValue
>> keyMetadataChanges;
34
public IDictionary<Guid, IDictionary<XName,
InstanceValue
>> InstanceKeysToAssociate
40
this.keysToAssociate = new Dictionary<Guid, IDictionary<XName,
InstanceValue
>>();
70
public IDictionary<XName,
InstanceValue
> InstanceMetadataChanges
76
this.instanceMetadataChanges = new Dictionary<XName,
InstanceValue
>();
82
public IDictionary<Guid, IDictionary<XName,
InstanceValue
>> InstanceKeyMetadataChanges
88
this.keyMetadataChanges = new Dictionary<Guid, IDictionary<XName,
InstanceValue
>>();
94
public IDictionary<XName,
InstanceValue
> InstanceData
100
this.instanceData = new Dictionary<XName,
InstanceValue
>();
142
foreach (KeyValuePair<Guid, IDictionary<XName,
InstanceValue
>> key in this.keysToAssociate)
150
foreach (KeyValuePair<Guid, IDictionary<XName,
InstanceValue
>> key in this.keyMetadataChanges)
System\Activities\WorkflowApplication.cs (37)
106
IDictionary<XName,
InstanceValue
> instanceMetadata;
334
this.instanceMetadata = new Dictionary<XName,
InstanceValue
>(writeOnlyValues.Count);
1405
PersistencePipeline ProcessInstanceValues(IDictionary<XName,
InstanceValue
> values, out object deserializedRuntimeState)
1420
static ActivityExecutor ExtractRuntimeState(IDictionary<XName,
InstanceValue
> values, Guid instanceId)
1422
InstanceValue
value;
1847
void LoadCore(DynamicUpdateMap updateMap, TimeoutHelper timeoutHelper, bool loadAny, IDictionary<XName,
InstanceValue
> values = null)
1978
IDictionary<XName,
InstanceValue
> values = LoadValues(persistenceManager, timeoutHelper, loadAny);
2020
static IDictionary<XName,
InstanceValue
> LoadValues(PersistenceManager persistenceManager, TimeoutHelper timeoutHelper, bool loadAny)
2022
IDictionary<XName,
InstanceValue
> values;
2310
IDictionary<XName,
InstanceValue
> data = null;
2866
IDictionary<XName,
InstanceValue
> GetInstanceMetadata()
2872
this.instanceMetadata = new Dictionary<XName,
InstanceValue
>(2);
2887
this.persistenceManager.SetMutablemetadata(new Dictionary<XName,
InstanceValue
>
3442
IDictionary<XName,
InstanceValue
> data;
4297
IDictionary<XName,
InstanceValue
> values;
4302
IDictionary<XName,
InstanceValue
> values, DynamicUpdateMap updateMap, TimeSpan timeout,
5552
IDictionary<XName,
InstanceValue
> instanceMetadata;
5554
IDictionary<XName,
InstanceValue
> mutableMetadata;
5556
public PersistenceManager(InstanceStore store, IDictionary<XName,
InstanceValue
> instanceMetadata, Guid instanceId)
5574
public PersistenceManager(InstanceStore store, IDictionary<XName,
InstanceValue
> instanceMetadata)
5636
this.instanceMetadata = new Dictionary<XName,
InstanceValue
>(1);
5644
public void SetInstanceMetadata(IDictionary<XName,
InstanceValue
> metadata)
5654
public void SetMutablemetadata(IDictionary<XName,
InstanceValue
> metadata)
5839
public static Dictionary<XName,
InstanceValue
> GenerateInitialData(WorkflowApplication instance)
5841
Dictionary<XName,
InstanceValue
> data = new Dictionary<XName,
InstanceValue
>(10);
5912
static SaveWorkflowCommand CreateSaveCommand(IDictionary<XName,
InstanceValue
> instance, IDictionary<XName,
InstanceValue
> instanceMetadata, PersistenceOperation operation)
5922
foreach (KeyValuePair<XName,
InstanceValue
> value in instance)
5930
foreach (KeyValuePair<XName,
InstanceValue
> value in instanceMetadata)
5939
bool TryLoadHelper(InstanceView view, out IDictionary<XName,
InstanceValue
> data)
5958
public void Save(IDictionary<XName,
InstanceValue
> instance, PersistenceOperation operation, TimeSpan timeout)
5964
public IDictionary<XName,
InstanceValue
> Load(TimeSpan timeout)
5977
public bool TryLoad(TimeSpan timeout, out IDictionary<XName,
InstanceValue
> data)
5983
public IAsyncResult BeginSave(IDictionary<XName,
InstanceValue
> instance, PersistenceOperation operation, TimeSpan timeout, AsyncCallback callback, object state)
5999
public IDictionary<XName,
InstanceValue
> EndLoad(IAsyncResult result)
6017
public bool EndTryLoad(IAsyncResult result, out IDictionary<XName,
InstanceValue
> data)
System\Activities\WorkflowApplicationInstance.cs (2)
26
IDictionary<XName,
InstanceValue
> values,
70
internal IDictionary<XName,
InstanceValue
> Values
System.Activities.DurableInstancing (58)
System\Activities\DurableInstancing\CorrelationKey.cs (3)
24
public CorrelationKey(Guid keyId, IDictionary<XName,
InstanceValue
> keyMetadata, InstanceEncodingOption encodingOption)
83
public static List<CorrelationKey> BuildKeyList(IDictionary<Guid, IDictionary<XName,
InstanceValue
>> keys, InstanceEncodingOption encodingOption)
89
foreach (KeyValuePair<Guid, IDictionary<XName,
InstanceValue
>> keyValuePair in keys)
System\Activities\DurableInstancing\CreateWorkflowOwnerAsyncResult.cs (5)
66
IDictionary<XName,
InstanceValue
> commandMetadata = GetCommandMetadata(out withIdentity);
72
InstanceValue
instanceValue;
144
void ExtractWorkflowHostType(IDictionary<XName,
InstanceValue
> commandMetadata)
146
InstanceValue
instanceValue;
162
IDictionary<XName,
InstanceValue
> GetCommandMetadata(out bool withIdentity)
System\Activities\DurableInstancing\LoadWorkflowAsyncResult.cs (18)
19
Dictionary<Guid, IDictionary<XName,
InstanceValue
>> associatedInstanceKeys;
20
Dictionary<Guid, IDictionary<XName,
InstanceValue
>> completedInstanceKeys;
22
Dictionary<XName,
InstanceValue
> instanceData;
23
Dictionary<XName,
InstanceValue
> instanceMetadata;
39
this.associatedInstanceKeys = new Dictionary<Guid, IDictionary<XName,
InstanceValue
>>();
40
this.completedInstanceKeys = new Dictionary<Guid, IDictionary<XName,
InstanceValue
>>();
142
foreach (KeyValuePair<Guid, IDictionary<XName,
InstanceValue
>> keyEntry in loadByKeycommand.InstanceKeysToAssociate)
150
this.associatedInstanceKeys.Add(loadByKeycommand.LookupInstanceKey, new Dictionary<XName,
InstanceValue
>());
156
foreach (KeyValuePair<Guid, IDictionary<XName,
InstanceValue
>> keyEntry in loadByKeycommand.InstanceKeysToAssociate)
162
foreach (KeyValuePair<XName,
InstanceValue
> property in keyEntry.Value)
187
void ReadInstanceMetadataChanges(SqlDataReader reader, Dictionary<XName,
InstanceValue
> instanceMetadata)
204
Dictionary<XName,
InstanceValue
> metadataChangeSet = SerializationUtilities.DeserializeMetadataPropertyBag(serializedMetadataChanges, encodingOption);
206
foreach (KeyValuePair<XName,
InstanceValue
> metadataChange in metadataChangeSet)
209
InstanceValue
propertyValue = metadataChange.Value;
224
void ReadKeyData(SqlDataReader reader, Dictionary<Guid, IDictionary<XName,
InstanceValue
>> associatedInstanceKeys,
225
Dictionary<Guid, IDictionary<XName,
InstanceValue
>> completedInstanceKeys)
241
Dictionary<Guid, IDictionary<XName,
InstanceValue
>> destination = isAssociated ? associatedInstanceKeys : completedInstanceKeys;
249
destination[key] = new Dictionary<XName,
InstanceValue
>();
System\Activities\DurableInstancing\SaveWorkflowAsyncResult.cs (15)
165
foreach (KeyValuePair<XName,
InstanceValue
> property in saveWorkflowCommand.InstanceMetadataChanges)
212
InstanceValue
binaryBlockingBookmarks;
233
InstanceValue
executionStatusProperty;
245
InstanceValue
pendingTimerExpirationPropertyValue;
260
IDictionary<XName,
InstanceValue
> instanceMetadataChanges = saveWorkflowCommand.InstanceMetadataChanges;
262
InstanceValue
propertyValue;
289
InstanceValue
instanceValue;
306
InstanceValue
statusPropertyValue;
321
foreach (KeyValuePair<Guid, IDictionary<XName,
InstanceValue
>> keyEntry in saveWorkflowCommand.InstanceKeysToAssociate)
329
foreach (KeyValuePair<XName,
InstanceValue
> property in keyEntry.Value)
358
foreach (KeyValuePair<Guid, IDictionary<XName,
InstanceValue
>> keyEntry in saveWorkflowCommand.InstanceKeyMetadataChanges)
362
foreach (KeyValuePair<XName,
InstanceValue
> property in keyEntry.Value)
386
InstanceValue
instanceValue;
553
InstanceValue
propertyValue;
578
InstanceValue
propertyValue;
System\Activities\DurableInstancing\SerializationUtilities.cs (17)
69
public static bool IsPropertyTypeSqlVariantCompatible(
InstanceValue
value)
92
public static Dictionary<XName,
InstanceValue
> DeserializeMetadataPropertyBag(byte[] serializedMetadataProperties, InstanceEncodingOption instanceEncodingOption)
94
Dictionary<XName,
InstanceValue
> metadataProperties = new Dictionary<XName,
InstanceValue
>();
118
foreach (KeyValuePair<XName,
InstanceValue
> metadataProperty in context.InstanceView.InstanceMetadata)
127
foreach (KeyValuePair<XName,
InstanceValue
> metadataChange in saveWorkflowCommand.InstanceMetadataChanges)
154
public static ArraySegment<byte>[] SerializePropertyBag(IDictionary<XName,
InstanceValue
> properties, InstanceEncodingOption encodingOption)
168
foreach (KeyValuePair<XName,
InstanceValue
> property in properties)
202
public static ArraySegment<byte> SerializeKeyMetadata(IDictionary<XName,
InstanceValue
> metadataProperties, InstanceEncodingOption encodingOption)
208
foreach (KeyValuePair<XName,
InstanceValue
> property in metadataProperties)
223
public static Dictionary<XName,
InstanceValue
> DeserializeKeyMetadata(byte[] serializedKeyMetadata, InstanceEncodingOption encodingOption)
228
public static Dictionary<XName,
InstanceValue
> DeserializePropertyBag(byte[] primitiveDataProperties, byte[] complexDataProperties, InstanceEncodingOption encodingOption)
231
Dictionary<XName,
InstanceValue
> properties = new Dictionary<XName,
InstanceValue
>();
303
InstanceValue
instanceValueIdentityCollection = null;
319
InstanceValue
instanceValue = null;
344
InstanceValue
instanceValue = null;
System.Runtime.DurableInstancing (113)
System\Runtime\DurableInstancing\InstanceKey.cs (10)
16
static IDictionary<XName,
InstanceValue
> emptyMetadata = new ReadOnlyDictionaryInternal<XName,
InstanceValue
>(new Dictionary<XName,
InstanceValue
>(0));
20
IDictionary<XName,
InstanceValue
> metadata;
33
public InstanceKey(Guid value, IDictionary<XName,
InstanceValue
> metadata)
49
Dictionary<XName,
InstanceValue
> copy = new Dictionary<XName,
InstanceValue
>(metadata);
50
this.Metadata = new ReadOnlyDictionaryInternal<XName,
InstanceValue
>(copy);
74
public IDictionary<XName,
InstanceValue
> Metadata
132
internal IDictionary<XName,
InstanceValue
> SerializedMetadata
System\Runtime\DurableInstancing\InstanceKeyView.cs (9)
16
static readonly ReadOnlyDictionaryInternal<XName,
InstanceValue
> emptyProperties = new ReadOnlyDictionaryInternal<XName,
InstanceValue
>(new Dictionary<XName,
InstanceValue
>(0));
18
IDictionary<XName,
InstanceValue
> metadata;
19
Dictionary<XName,
InstanceValue
> accumulatedMetadataWrites;
40
public IDictionary<XName,
InstanceValue
> InstanceKeyMetadata
44
IDictionary<XName,
InstanceValue
> pendingWrites = this.accumulatedMetadataWrites;
55
internal Dictionary<XName,
InstanceValue
> AccumulatedMetadataWrites
61
this.accumulatedMetadataWrites = new Dictionary<XName,
InstanceValue
>();
System\Runtime\DurableInstancing\InstanceOwnerQueryResult.cs (24)
14
static readonly ReadOnlyDictionaryInternal<Guid, IDictionary<XName,
InstanceValue
>> EmptyQueryResult = new ReadOnlyDictionaryInternal<Guid, IDictionary<XName,
InstanceValue
>>(new Dictionary<Guid, IDictionary<XName,
InstanceValue
>>(0));
15
static readonly ReadOnlyDictionaryInternal<XName,
InstanceValue
> EmptyMetadata = new ReadOnlyDictionaryInternal<XName,
InstanceValue
>(new Dictionary<XName,
InstanceValue
>(0));
24
public InstanceOwnerQueryResult(Guid instanceOwnerId, IDictionary<XName,
InstanceValue
> metadata)
26
Dictionary<Guid, IDictionary<XName,
InstanceValue
>> owners = new Dictionary<Guid, IDictionary<XName,
InstanceValue
>>(1);
27
IDictionary<XName,
InstanceValue
> safeMetadata; // if metadata is not readonly, copy it.
33
IDictionary<XName,
InstanceValue
> copy = new Dictionary<XName,
InstanceValue
>(metadata);
34
safeMetadata = new ReadOnlyDictionaryInternal<XName,
InstanceValue
>(copy);
37
InstanceOwners = new ReadOnlyDictionaryInternal<Guid, IDictionary<XName,
InstanceValue
>>(owners);
41
public InstanceOwnerQueryResult(IDictionary<Guid, IDictionary<XName,
InstanceValue
>> instanceOwners)
43
Dictionary<Guid, IDictionary<XName,
InstanceValue
>> owners = new Dictionary<Guid, IDictionary<XName,
InstanceValue
>>(instanceOwners.Count);
44
foreach (KeyValuePair<Guid, IDictionary<XName,
InstanceValue
>> metadata in instanceOwners)
46
IDictionary<XName,
InstanceValue
> safeMetadata; // if metadata is not readonly, copy it.
52
IDictionary<XName,
InstanceValue
> copy = new Dictionary<XName,
InstanceValue
>(metadata.Value);
53
safeMetadata = new ReadOnlyDictionaryInternal<XName,
InstanceValue
>(copy);
57
InstanceOwners = new ReadOnlyDictionaryInternal<Guid, IDictionary<XName,
InstanceValue
>>(owners);
60
public IDictionary<Guid, IDictionary<XName,
InstanceValue
>> InstanceOwners { get; private set; }
System\Runtime\DurableInstancing\InstancePersistence.cs (23)
34
public static void ValidatePropertyBag(this IDictionary<XName,
InstanceValue
> bag)
39
public static void ValidatePropertyBag(this IDictionary<XName,
InstanceValue
> bag, bool allowDelete)
43
foreach (KeyValuePair<XName,
InstanceValue
> property in bag)
50
public static void ValidateProperty(this KeyValuePair<XName,
InstanceValue
> property)
55
public static void ValidateProperty(this KeyValuePair<XName,
InstanceValue
> property, bool allowDelete)
71
public static bool IsOptional(this
InstanceValue
value)
76
public static bool IsWriteOnly(this
InstanceValue
value)
81
public static ReadOnlyDictionaryInternal<XName,
InstanceValue
> ReadOnlyCopy(this IDictionary<XName,
InstanceValue
> bag, bool allowWriteOnly)
85
Dictionary<XName,
InstanceValue
> copy = new Dictionary<XName,
InstanceValue
>(bag.Count);
86
foreach (KeyValuePair<XName,
InstanceValue
> value in bag)
98
return new ReadOnlyDictionaryInternal<XName,
InstanceValue
>(copy);
106
public static ReadOnlyDictionaryInternal<XName,
InstanceValue
> ReadOnlyMergeInto(this IDictionary<XName,
InstanceValue
> bag, IDictionary<XName,
InstanceValue
> existing, bool allowWriteOnly)
108
Fx.Assert(existing == null || existing is ReadOnlyDictionaryInternal<XName,
InstanceValue
>, "Should only be merging into other read-only dictionaries.");
112
Dictionary<XName,
InstanceValue
> copy = existing == null ? new Dictionary<XName,
InstanceValue
>(bag.Count) : new Dictionary<XName,
InstanceValue
>(existing);
113
foreach (KeyValuePair<XName,
InstanceValue
> value in bag)
133
return new ReadOnlyDictionaryInternal<XName,
InstanceValue
>(copy);
137
return (ReadOnlyDictionaryInternal<XName,
InstanceValue
>)existing;
System\Runtime\DurableInstancing\InstancePersistenceContext.cs (15)
279
public void PersistedInstance(IDictionary<XName,
InstanceValue
> data)
290
public void LoadedInstance(InstanceState state, IDictionary<XName,
InstanceValue
> instanceData, IDictionary<XName,
InstanceValue
> instanceMetadata, IDictionary<Guid, IDictionary<XName,
InstanceValue
>> associatedInstanceKeyMetadata, IDictionary<Guid, IDictionary<XName,
InstanceValue
>> completedInstanceKeyMetadata)
315
ReadOnlyDictionaryInternal<XName,
InstanceValue
> instanceDataCopy = instanceData.ReadOnlyCopy(false);
316
ReadOnlyDictionaryInternal<XName,
InstanceValue
> instanceMetadataCopy = instanceMetadata.ReadOnlyCopy(false);
326
foreach (KeyValuePair<Guid, IDictionary<XName,
InstanceValue
>> keyMetadata in associatedInstanceKeyMetadata)
338
foreach (KeyValuePair<Guid, IDictionary<XName,
InstanceValue
>> keyMetadata in completedInstanceKeyMetadata)
380
public void ReadInstanceMetadata(IDictionary<XName,
InstanceValue
> metadata, bool complete)
411
public void WroteInstanceMetadataValue(XName name,
InstanceValue
value)
527
public void ReadInstanceKeyMetadata(Guid key, IDictionary<XName,
InstanceValue
> metadata, bool complete)
592
public void WroteInstanceKeyMetadataValue(Guid key, XName name,
InstanceValue
value)
635
public void ReadInstanceOwnerMetadata(IDictionary<XName,
InstanceValue
> metadata, bool complete)
657
public void WroteInstanceOwnerMetadataValue(XName name,
InstanceValue
value)
System\Runtime\DurableInstancing\InstanceValue.cs (4)
15
readonly static
InstanceValue
deletedValue = new InstanceValue();
41
return object.ReferenceEquals(this,
InstanceValue
.DeletedValue);
45
public static
InstanceValue
DeletedValue
49
return
InstanceValue
.deletedValue;
System\Runtime\DurableInstancing\InstanceView.cs (17)
18
static readonly ReadOnlyDictionaryInternal<XName,
InstanceValue
> emptyProperties = new ReadOnlyDictionaryInternal<XName,
InstanceValue
>(new Dictionary<XName,
InstanceValue
>(0));
21
IDictionary<XName,
InstanceValue
> data;
22
IDictionary<XName,
InstanceValue
> metadata;
23
IDictionary<XName,
InstanceValue
> ownerMetadata;
27
Dictionary<XName,
InstanceValue
> accumulatedMetadataWrites;
28
Dictionary<XName,
InstanceValue
> accumulatedOwnerMetadataWrites;
116
public IDictionary<XName,
InstanceValue
> InstanceData
130
public IDictionary<XName,
InstanceValue
> InstanceMetadata
134
IDictionary<XName,
InstanceValue
> pendingWrites = this.accumulatedMetadataWrites;
146
internal Dictionary<XName,
InstanceValue
> AccumulatedMetadataWrites
152
this.accumulatedMetadataWrites = new Dictionary<XName,
InstanceValue
>();
159
public IDictionary<XName,
InstanceValue
> InstanceOwnerMetadata
163
IDictionary<XName,
InstanceValue
> pendingWrites = this.accumulatedOwnerMetadataWrites;
175
internal Dictionary<XName,
InstanceValue
> AccumulatedOwnerMetadataWrites
181
this.accumulatedOwnerMetadataWrites = new Dictionary<XName,
InstanceValue
>();
System\Runtime\PersistencePipeline.cs (11)
22
IDictionary<XName,
InstanceValue
> values;
23
ReadOnlyDictionaryInternal<XName,
InstanceValue
> readOnlyView;
28
public PersistencePipeline(IEnumerable<IPersistencePipelineModule> modules, Dictionary<XName,
InstanceValue
> initialValues)
35
this.readOnlyView = new ReadOnlyDictionaryInternal<XName,
InstanceValue
>(this.values);
49
public ReadOnlyDictionaryInternal<XName,
InstanceValue
> Values
173
public void SetLoadedValues(IDictionary<XName,
InstanceValue
> values)
179
this.readOnlyView = values as ReadOnlyDictionaryInternal<XName,
InstanceValue
> ?? new ReadOnlyDictionaryInternal<XName,
InstanceValue
>(values);
240
IDictionary<XName,
InstanceValue
> basis;
246
public ValueDictionaryView(IDictionary<XName,
InstanceValue
> basis, bool writeOnly)
328
InstanceValue
realValue;
System.ServiceModel (1)
System\ServiceModel\Channels\CorrelationKey.cs (1)
26
: base(GenerateKey(keyString), new Dictionary<XName,
InstanceValue
>(2)
System.ServiceModel.Activities (40)
System\ServiceModel\Activities\Dispatcher\DurableInstanceManager.cs (7)
31
IDictionary<XName,
InstanceValue
> instanceOwnerMetadata;
33
IDictionary<XName,
InstanceValue
> instanceMetadataChanges;
40
this.instanceOwnerMetadata = new Dictionary<XName,
InstanceValue
>();
41
this.instanceMetadataChanges = new Dictionary<XName,
InstanceValue
>();
45
InstanceValue
sentinel = new InstanceValue(XNamespace.Get("http://tempuri.org").GetName("Sentinel"));
467
IDictionary<XName,
InstanceValue
> commandMetadata;
481
foreach (KeyValuePair<XName,
InstanceValue
> metadata in this.instanceOwnerMetadata)
System\ServiceModel\Activities\Dispatcher\PersistenceContext.cs (9)
216
IDictionary<XName,
InstanceValue
> instance,
483
internal static bool TryGetValue<T>(IDictionary<XName,
InstanceValue
> data, XName key, out T value)
485
InstanceValue
instanceValue;
696
foreach (KeyValuePair<XName,
InstanceValue
> pair in this.directory.InstanceMetadataChanges)
715
saveCommand.InstanceMetadataChanges.Add(Workflow45Namespace.DefinitionIdentity,
InstanceValue
.DeletedValue);
779
public SaveAsyncResult(PersistenceContext persistenceContext, IDictionary<XName,
InstanceValue
> instance, SaveStatus saveStatus, TimeSpan timeout,
809
foreach (KeyValuePair<XName,
InstanceValue
> value in instance)
820
saveCommand.InstanceMetadataChanges.Add(WorkflowServiceNamespace.SuspendReason,
InstanceValue
.DeletedValue);
821
saveCommand.InstanceMetadataChanges.Add(WorkflowServiceNamespace.SuspendException,
InstanceValue
.DeletedValue);
System\ServiceModel\Activities\Dispatcher\PersistenceProviderDirectory.cs (6)
44
internal PersistenceProviderDirectory(InstanceStore store, InstanceOwner owner, IDictionary<XName,
InstanceValue
> instanceMetadataChanges, WorkflowDefinitionProvider workflowDefinitionProvider, WorkflowServiceHost serviceHost,
81
public IDictionary<XName,
InstanceValue
> InstanceMetadataChanges { get; private set; }
95
public WorkflowServiceInstance InitializeInstance(Guid instanceId, PersistenceContext context, IDictionary<XName,
InstanceValue
> instance, WorkflowCreationContext creationContext)
105
public WorkflowServiceInstance InitializeInstance(Guid instanceId, PersistenceContext context, WorkflowIdentity definitionIdentity, WorkflowIdentityKey updatedIdentity, IDictionary<XName,
InstanceValue
> instance, WorkflowCreationContext creationContext)
572
static void TryAddKeyToInstanceKeysCollection(IDictionary<Guid, IDictionary<XName,
InstanceValue
>> instanceKeysToAssociate, InstanceKey keyToAdd)
1154
InstanceValue
instanceValue;
System\ServiceModel\Activities\Dispatcher\WorkflowServiceInstance.cs (7)
315
public static WorkflowServiceInstance InitializeInstance(PersistenceContext persistenceContext, Guid instanceId, Activity workflowDefinition, WorkflowIdentity definitionIdentity, IDictionary<XName,
InstanceValue
> loadedObject, WorkflowCreationContext creationContext,
332
InstanceValue
stateValue;
1520
Dictionary<XName,
InstanceValue
> GeneratePersistenceData()
1522
Dictionary<XName,
InstanceValue
> data = new Dictionary<XName,
InstanceValue
>(10);
3353
IDictionary<XName,
InstanceValue
> data;
3758
Dictionary<XName,
InstanceValue
> initialPersistenceData = this.instance.GeneratePersistenceData();
System\ServiceModel\Activities\InternalReceiveMessage.cs (1)
1058
InstanceValue
value;
System\ServiceModel\Activities\InternalSendMessage.cs (3)
766
new Dictionary<XName,
InstanceValue
>
784
new Dictionary<XName,
InstanceValue
>
917
InstanceValue
value;
System\ServiceModel\Activities\SerializableInstanceKey.cs (3)
26
foreach (KeyValuePair<XName,
InstanceValue
> pair in instanceKey.Metadata)
72
IDictionary<XName,
InstanceValue
> metadata = null;
75
metadata = new Dictionary<XName,
InstanceValue
>(this.metadata.Count);
System\ServiceModel\Activities\SerializableInstanceValue.cs (2)
18
public SerializableInstanceValue(
InstanceValue
instanceValue)
54
public
InstanceValue
ToInstanceValue()
System\ServiceModel\Activities\ToReply.cs (1)
266
InstanceValue
messageVersionValue;
System\ServiceModel\Activities\WorkflowDefinitionProvider.cs (1)
56
public void GetDefinitionIdentityMetadata(IDictionary<XName,
InstanceValue
> metadataCollection)