28 references to Optional
System.Activities (9)
System\Activities\WorkflowApplication.cs (9)
340
this.instanceMetadata[pair.Key] = new InstanceValue(pair.Value, InstanceValueOptions.
Optional
| InstanceValueOptions.WriteOnly);
2879
new InstanceValue(this.DefinitionIdentity, InstanceValueOptions.
Optional
);
2889
{ Workflow45Namespace.DefinitionIdentity, new InstanceValue(this.DefinitionIdentity, InstanceValueOptions.
Optional
) }
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
);
5858
data[WorkflowNamespace.Workflow] = new InstanceValue(instance.Controller.PrepareForSerialization(), InstanceValueOptions.
Optional
);
5867
data[WorkflowNamespace.Exception] = new InstanceValue(completionException, InstanceValueOptions.WriteOnly | InstanceValueOptions.
Optional
);
5876
data[WorkflowNamespace.OutputPath.GetName(output.Key)] = new InstanceValue(output.Value, InstanceValueOptions.WriteOnly | InstanceValueOptions.
Optional
);
System.Runtime.DurableInstancing (3)
System\Runtime\DurableInstancing\InstancePersistence.cs (1)
73
return (value.Options & InstanceValueOptions.
Optional
) != 0;
System\Runtime\PersistencePipeline.cs (2)
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 (14)
System\ServiceModel\Activities\Dispatcher\DurableInstanceManager.cs (7)
97
InstanceValueOptions.
Optional
| InstanceValueOptions.WriteOnly));
114
this.instanceMetadataChanges.Add(pair.Key, new InstanceValue(pair.Value, InstanceValueOptions.
Optional
| InstanceValueOptions.WriteOnly));
319
this.instanceMetadataChanges[WorkflowServiceNamespace.Service] = new InstanceValue(Host.ServiceName, InstanceValueOptions.WriteOnly | InstanceValueOptions.
Optional
);
355
this.instanceMetadataChanges.Add(PersistenceMetadataNamespace.ActivationType, new InstanceValue(PersistenceMetadataNamespace.ActivationTypes.WAS, InstanceValueOptions.WriteOnly | InstanceValueOptions.
Optional
));
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 (1)
1348
saveCommand.InstanceMetadataChanges[WorkflowServiceNamespace.SuspendException] = new InstanceValue(reason, InstanceValueOptions.WriteOnly | InstanceValueOptions.
Optional
);
System\ServiceModel\Activities\Dispatcher\WorkflowServiceInstance.cs (6)
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
);
1545
data[WorkflowNamespace.Workflow] = new InstanceValue(Controller.PrepareForSerialization(), InstanceValueOptions.
Optional
);
1552
data[WorkflowNamespace.Exception] = new InstanceValue(this.terminationException, InstanceValueOptions.WriteOnly | InstanceValueOptions.
Optional
);
1561
data[WorkflowNamespace.OutputPath.GetName(output.Key)] = new InstanceValue(output.Value, InstanceValueOptions.WriteOnly | InstanceValueOptions.
Optional
);