38 references to WriteOnly
System.Activities (11)
System\Activities\WorkflowApplication.cs (11)
340
this.instanceMetadata[pair.Key] = new InstanceValue(pair.Value, InstanceValueOptions.Optional | InstanceValueOptions.
WriteOnly
);
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);
5854
data[WorkflowNamespace.Status] = new InstanceValue(instance.Controller.State == WorkflowInstanceState.Idle ? "Idle" : "Executing", InstanceValueOptions.
WriteOnly
);
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
);
System.Activities.DurableInstancing (6)
System\Activities\DurableInstancing\SerializationUtilities.cs (6)
120
if ((metadataProperty.Value.Options & InstanceValueOptions.
WriteOnly
) == 0)
140
else if ((metadataChange.Value.Options & InstanceValueOptions.
WriteOnly
) == 0)
171
bool isWriteOnly = (property.Value.Options & InstanceValueOptions.
WriteOnly
) == InstanceValueOptions.
WriteOnly
;
210
if ((property.Value.Options & InstanceValueOptions.
WriteOnly
) != InstanceValueOptions.
WriteOnly
)
System.Runtime.DurableInstancing (3)
System\Runtime\DurableInstancing\InstancePersistence.cs (1)
78
return (value.Options & InstanceValueOptions.
WriteOnly
) != 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.Activities (18)
System\ServiceModel\Activities\Dispatcher\DurableInstanceManager.cs (8)
48
this.instanceMetadataChanges.Add(PersistenceMetadataNamespace.InstanceType, new InstanceValue(WorkflowNamespace.WorkflowHostType, InstanceValueOptions.
WriteOnly
));
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 (9)
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);
1541
data[WorkflowNamespace.Status] = new InstanceValue(Controller.State == WorkflowInstanceState.Idle ? "Idle" : "Executing", InstanceValueOptions.
WriteOnly
);
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
);