1 instantiation of XName
System.Xml.Linq (1)
System\Xml\Linq\XLinq.cs (1)
425
return names.Add(new
XName
(this, localName.Substring(index, count)));
808 references to XName
System.Activities (119)
System\Activities\DurableInstancing\ActivatableWorkflowsQueryResult.cs (14)
19
static readonly ReadOnlyDictionaryInternal<
XName
, object> emptyDictionary = new ReadOnlyDictionaryInternal<
XName
, object>(new Dictionary<
XName
, object>(0));
23
ActivationParameters = new List<IDictionary<
XName
, object>>(0);
26
public ActivatableWorkflowsQueryResult(IDictionary<
XName
, object> parameters)
28
ActivationParameters = new List<IDictionary<
XName
, object>>
29
{ parameters == null ? ActivatableWorkflowsQueryResult.emptyDictionary : new ReadOnlyDictionaryInternal<
XName
, object>(new Dictionary<
XName
, object>(parameters)) };
32
public ActivatableWorkflowsQueryResult(IEnumerable<IDictionary<
XName
, object>> parameters)
36
ActivationParameters = new List<IDictionary<
XName
, object>>(0);
40
ActivationParameters = new List<IDictionary<
XName
, object>>(parameters.Select(dictionary =>
41
dictionary == null ? ActivatableWorkflowsQueryResult.emptyDictionary : new ReadOnlyDictionaryInternal<
XName
, object>(new Dictionary<
XName
, object>(dictionary))));
45
public List<IDictionary<
XName
, object>> ActivationParameters
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\PersistenceIOParticipant.cs (6)
24
protected virtual IAsyncResult BeginOnSave(IDictionary<
XName
, object> readWriteValues, IDictionary<
XName
, object> writeOnlyValues, TimeSpan timeout, AsyncCallback callback, object state)
37
protected virtual IAsyncResult BeginOnLoad(IDictionary<
XName
, object> readWriteValues, TimeSpan timeout, AsyncCallback callback, object state)
50
internal override IAsyncResult InternalBeginOnSave(IDictionary<
XName
, object> readWriteValues, IDictionary<
XName
, object> writeOnlyValues, TimeSpan timeout, AsyncCallback callback, object state)
60
internal override IAsyncResult InternalBeginOnLoad(IDictionary<
XName
, object> readWriteValues, TimeSpan timeout, AsyncCallback callback, object state)
System\Activities\DurableInstancing\PersistenceParticipant.cs (18)
32
protected virtual void CollectValues(out IDictionary<
XName
, object> readWriteValues, out IDictionary<
XName
, object> writeOnlyValues)
39
protected virtual IDictionary<
XName
, object> MapValues(IDictionary<
XName
, object> readWriteValues, IDictionary<
XName
, object> writeOnlyValues)
45
protected virtual void PublishValues(IDictionary<
XName
, object> readWriteValues)
49
void IPersistencePipelineModule.CollectValues(out IDictionary<
XName
, object> readWriteValues, out IDictionary<
XName
, object> writeOnlyValues)
54
IDictionary<
XName
, object> IPersistencePipelineModule.MapValues(IDictionary<
XName
, object> readWriteValues, IDictionary<
XName
, object> writeOnlyValues)
59
void IPersistencePipelineModule.PublishValues(IDictionary<
XName
, object> readWriteValues)
88
IAsyncResult IPersistencePipelineModule.BeginOnSave(IDictionary<
XName
, object> readWriteValues, IDictionary<
XName
, object> writeOnlyValues, TimeSpan timeout, AsyncCallback callback, object state)
98
IAsyncResult IPersistencePipelineModule.BeginOnLoad(IDictionary<
XName
, object> readWriteValues, TimeSpan timeout, AsyncCallback callback, object state)
113
internal virtual IAsyncResult InternalBeginOnSave(IDictionary<
XName
, object> readWriteValues, IDictionary<
XName
, object> writeOnlyValues, TimeSpan timeout, AsyncCallback callback, object state)
123
internal virtual IAsyncResult InternalBeginOnLoad(IDictionary<
XName
, object> readWriteValues, TimeSpan timeout, AsyncCallback callback, object state)
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\Statements\CompensationExtension.cs (5)
18
static readonly
XName
compensationExtensionData = compensationNamespace.GetName("Data");
154
protected override void CollectValues(out IDictionary<
XName
, object> readWriteValues, out IDictionary<
XName
, object> writeOnlyValues)
157
readWriteValues = new Dictionary<
XName
, object>(1)
174
protected override void PublishValues(IDictionary<
XName
, object> readWriteValues)
System\Activities\Statements\DurableTimerExtension.cs (12)
26
static readonly
XName
timerTableName = XNamespace.Get("urn:schemas-microsoft-com:System.Activities/4.0/properties").GetName("RegisteredTimers");
27
static readonly
XName
timerExpirationTimeName = XNamespace.Get("urn:schemas-microsoft-com:System.Activities/4.0/properties").GetName("TimerExpirationTime");
107
internal void OnSave(out IDictionary<
XName
, object> readWriteValues, out IDictionary<
XName
, object> writeOnlyValues)
118
readWriteValues = new Dictionary<
XName
, object>(1);
119
writeOnlyValues = new Dictionary<
XName
, object>(1);
134
internal void OnLoad(IDictionary<
XName
, object> readWriteValues)
283
protected override void CollectValues(out IDictionary<
XName
, object> readWriteValues, out IDictionary<
XName
, object> writeOnlyValues)
288
protected override void PublishValues(IDictionary<
XName
, object> readWriteValues)
293
protected override IAsyncResult BeginOnSave(IDictionary<
XName
, object> readWriteValues, IDictionary<
XName
, object> writeOnlyValues, TimeSpan timeout, AsyncCallback callback, object state)
System\Activities\WorkflowApplication.cs (38)
106
IDictionary<
XName
, InstanceValue> instanceMetadata;
326
public void AddInitialInstanceValues(IDictionary<
XName
, object> writeOnlyValues)
334
this.instanceMetadata = new Dictionary<
XName
, InstanceValue>(writeOnlyValues.Count);
337
foreach (KeyValuePair<
XName
, object> pair in writeOnlyValues)
1405
PersistencePipeline ProcessInstanceValues(IDictionary<
XName
, InstanceValue> values, out object deserializedRuntimeState)
1420
static ActivityExecutor ExtractRuntimeState(IDictionary<
XName
, InstanceValue> values, Guid instanceId)
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.Core.Presentation (6)
System\Activities\Core\Presentation\DesignerMetadata.cs (1)
39
builder.AddCustomAttributes(typeof(
XName
), new EditorReuseAttribute(false));
System\ServiceModel\Activities\Presentation\Factories\ReceiveAndSendReplyFactory.cs (1)
33
ServiceContractName =
XName
.Get("IService", "http://tempuri.org/"),
System\ServiceModel\Activities\Presentation\Factories\SendAndReceiveReplyFactory.cs (1)
33
ServiceContractName =
XName
.Get("IService", "http://tempuri.org/"),
System\ServiceModel\Activities\Presentation\MessageQueryEditor.xaml.cs (3)
146
XName
serviceContractName = null;
153
serviceContractName = (
XName
)this.Activity.Properties["Request"].Value.Properties["ServiceContractName"].ComputedValue;
166
serviceContractName = (
XName
)this.Activity.Properties["ServiceContractName"].ComputedValue;
System.Activities.DurableInstancing (129)
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 (6)
66
IDictionary<
XName
, InstanceValue> commandMetadata = GetCommandMetadata(out withIdentity);
144
void ExtractWorkflowHostType(IDictionary<
XName
, InstanceValue> commandMetadata)
149
XName
workflowHostType = instanceValue.Value as
XName
;
153
throw FxTrace.Exception.AsError(new InstancePersistenceCommandException(SR.InvalidMetadataValue(WorkflowNamespace.WorkflowHostType, typeof(
XName
).Name)));
162
IDictionary<
XName
, InstanceValue> GetCommandMetadata(out bool withIdentity)
System\Activities\DurableInstancing\DefaultObjectSerializer.cs (9)
25
public Dictionary<
XName
, object> DeserializePropertyBag(byte[] serializedValue)
41
public ArraySegment<byte> SerializePropertyBag(Dictionary<
XName
, object> value)
59
protected virtual Dictionary<
XName
, object> DeserializePropertyBag(Stream stream)
63
Dictionary<
XName
, object> propertyBag = new Dictionary<
XName
, object>();
70
KeyValuePair<
XName
, object> property = (KeyValuePair<
XName
, object>) this.serializer.ReadObject(dictionaryReader);
88
protected virtual void SerializePropertyBag(Stream stream, Dictionary<
XName
, object> propertyBag)
94
foreach (KeyValuePair<
XName
, object> property in propertyBag)
System\Activities\DurableInstancing\GZipObjectSerializer.cs (2)
14
protected override Dictionary<
XName
, object> DeserializePropertyBag(Stream stream)
29
protected override void SerializePropertyBag(Stream stream, Dictionary<
XName
, object> propertyBag)
System\Activities\DurableInstancing\InstanceAlreadyLockedToOwnerException.cs (1)
15
public InstanceAlreadyLockedToOwnerException(
XName
commandName, Guid instanceId, long instanceVersion)
System\Activities\DurableInstancing\IObjectSerializer.cs (2)
13
Dictionary<
XName
, object> DeserializePropertyBag(byte[] bytes);
15
ArraySegment<byte> SerializePropertyBag(Dictionary<
XName
, object> value);
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)
208
XName
xname = metadataChange.Key;
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\QueryActivatableWorkflowAsyncResult.cs (4)
41
List<IDictionary<
XName
, object>> activationParametersList = new List<IDictionary<
XName
, object>>();
46
IDictionary<
XName
, object> activationParameters = new Dictionary<
XName
, object>();
System\Activities\DurableInstancing\SaveWorkflowAsyncResult.cs (16)
165
foreach (KeyValuePair<
XName
, InstanceValue> property in saveWorkflowCommand.InstanceMetadataChanges)
260
IDictionary<
XName
, InstanceValue> instanceMetadataChanges = saveWorkflowCommand.InstanceMetadataChanges;
292
XName
workflowHostType = instanceValue.Value as
XName
;
296
throw FxTrace.Exception.AsError(new InstancePersistenceCommandException(SR.InvalidMetadataValue(WorkflowNamespace.WorkflowHostType, typeof(
XName
).Name)));
298
byte[] workflowHostTypeBuffer = Encoding.Unicode.GetBytes(((
XName
)instanceValue.Value).ToString());
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)
400
serviceName = ((
XName
)instanceValue.Value).LocalName;
401
serviceNamespace = ((
XName
)instanceValue.Value).Namespace.NamespaceName;
536
foreach (KeyValuePair<string, Tuple<List<
XName
>, List<
XName
>>> promotion in base.Store.Promotions)
551
foreach (
XName
name in promotion.Value.Item1)
576
foreach (
XName
name in promotion.Value.Item2)
System\Activities\DurableInstancing\SerializationUtilities.cs (30)
92
public static Dictionary<
XName
, InstanceValue> DeserializeMetadataPropertyBag(byte[] serializedMetadataProperties, InstanceEncodingOption instanceEncodingOption)
94
Dictionary<
XName
, InstanceValue> metadataProperties = new Dictionary<
XName
, InstanceValue>();
99
Dictionary<
XName
, object> propertyBag = serializer.DeserializePropertyBag(serializedMetadataProperties);
101
foreach (KeyValuePair<
XName
, object> property in propertyBag)
114
Dictionary<
XName
, object> propertyBagToSerialize = new Dictionary<
XName
, object>();
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)
163
Dictionary<
XName
, object> complexProperties = new Dictionary<
XName
, object>();
164
Dictionary<
XName
, object> complexWriteOnlyProperties = new Dictionary<
XName
, object>();
165
Dictionary<
XName
, object>[] propertyBags = new Dictionary<
XName
, object>[] { primitiveProperties, complexProperties,
168
foreach (KeyValuePair<
XName
, InstanceValue> property in properties)
202
public static ArraySegment<byte> SerializeKeyMetadata(IDictionary<
XName
, InstanceValue> metadataProperties, InstanceEncodingOption encodingOption)
206
Dictionary<
XName
, object> propertyBag = new Dictionary<
XName
, object>();
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>();
232
Dictionary<
XName
, object>[] propertyBags = new Dictionary<
XName
, object>[2];
236
propertyBags[0] = (Dictionary<
XName
, object>)serializer.DeserializeValue(primitiveDataProperties);
244
foreach (Dictionary<
XName
, object> propertyBag in propertyBags)
248
foreach (KeyValuePair<
XName
, object> property in propertyBag)
System\Activities\DurableInstancing\SqlWorkflowInstanceStore.cs (18)
31
Dictionary<string, Tuple<List<
XName
>, List<
XName
>>> definedPromotions;
63
this.definedPromotions = new Dictionary<string, Tuple<List<
XName
>, List<
XName
>>>();
204
internal Dictionary<string, Tuple<List<
XName
>, List<
XName
>>> Promotions
253
public void Promote(string name, IEnumerable<
XName
> promoteAsVariant, IEnumerable<
XName
> promoteAsBinary)
284
HashSet<
XName
> promotedXNames = new HashSet<
XName
>();
285
List<
XName
> variant = new List<
XName
>();
289
foreach (
XName
xname in promoteAsVariant)
306
List<
XName
> binary = new List<
XName
>();
310
foreach (
XName
xname in promoteAsBinary)
327
this.definedPromotions.Add(name, new Tuple<List<
XName
>, List<
XName
>>(variant, binary));
System\Activities\DurableInstancing\SqlWorkflowInstanceStoreConstants.cs (4)
17
public static readonly
XName
LastUpdatePropertyName = WorkflowNamespace.GetName("LastUpdate");
18
public static readonly
XName
PendingTimerExpirationPropertyName = WorkflowNamespace.GetName("TimerExpirationTime");
19
public static readonly
XName
BinaryBlockingBookmarksPropertyName = WorkflowNamespace.GetName("Bookmarks");
20
public static readonly
XName
StatusPropertyName = WorkflowNamespace.GetName("Status");
System\Activities\DurableInstancing\StoreUtilities.cs (12)
20
public static Exception CheckRemainingResultSetForErrors(
XName
commandName, SqlDataReader reader)
33
public static Exception CheckResult(
XName
commandName, SqlDataReader reader)
53
public static Exception GetError(
XName
commandName, CommandResult result, SqlDataReader reader)
110
public static Exception GetNextResultSet(
XName
commandName, SqlDataReader reader)
186
static Dictionary<
XName
, object> ReadLockOwnerMetadata(SqlDataReader reader)
188
Dictionary<
XName
, object> lockOwnerProperties = new Dictionary<
XName
, object>();
193
Dictionary<
XName
, object>[] lockOwnerPropertyBags = new Dictionary<
XName
, object>[2];
197
lockOwnerPropertyBags[0] = (Dictionary<
XName
, object>)serializer.DeserializeValue(serializedPrimitiveLockOwnerData);
205
foreach (Dictionary<
XName
, object> propertyBag in lockOwnerPropertyBags)
209
foreach (KeyValuePair<
XName
, object> property in propertyBag)
System\Activities\DurableInstancing\XmlPropertyBag.cs (4)
20
class XmlPropertyBag : Dictionary<
XName
, object>, IXmlSerializable
38
XName
propertyName =
XName
.Get(reader.Value);
57
foreach (KeyValuePair<
XName
, object> property in this)
System.Activities.Presentation (6)
System.Activities.Presentation\System\Activities\Presentation\Converters\XNameSearchableStringConverter.cs (1)
15
if (value is
XName
)
System.Activities.Presentation\System\Activities\Presentation\DesignerMetadata.cs (2)
64
builder.AddCustomAttributes(typeof(
XName
), new SearchableStringConverterAttribute(typeof(XNameSearchableStringConverter)));
68
builder.AddCustomAttributes(typeof(
XName
), new TypeConverterAttribute(typeof(XNameConverter)));
System.Activities.Presentation\System\Activities\Presentation\XNameConverter.cs (3)
25
XName
result = null;
40
XName
currentValue = (
XName
)value;
System.Data.Services (1)
System\Data\Services\Serializers\SyndicationSerializer.cs (1)
278
XName
.Get(XmlConstants.RowCountElement, XmlConstants.DataWebMetadataNamespace),
System.Data.Services.Client (3)
System\Data\Services\Client\AtomMaterializer.cs (3)
1484
string typeName = (string)element.Attribute(
XName
.Get(XmlConstants.AtomTypeAttributeName, XmlConstants.DataWebMetadataNamespace));
1495
var attribute = element.Attribute(
XName
.Get(localName, item.SegmentNamespaceUri));
1505
var child = element.Element(
XName
.Get(item.SegmentName, item.SegmentNamespaceUri));
System.Data.Services.Design (5)
System\Data\EntityModel\EntityClassGenerator.cs (1)
437
var
name = element.Name;
System\Data\Services\Design\Xml\XNodeSchemaApplier.cs (4)
40
private readonly
XName
xsiTypeName;
43
private readonly
XName
xsiNilName;
261
private static XmlQualifiedName ToQualifiedName(
XName
name)
337
XName
name = attribute.Name;
System.Runtime.DurableInstancing (261)
System\Runtime\DurableInstancing\IDurableInstancingOptions.cs (1)
13
void SetScopeName(
XName
scopeName);
System\Runtime\DurableInstancing\InstanceCollisionException.cs (3)
29
public InstanceCollisionException(
XName
commandName, Guid instanceId)
34
public InstanceCollisionException(
XName
commandName, Guid instanceId, Exception innerException)
39
public InstanceCollisionException(
XName
commandName, Guid instanceId, string message, Exception innerException)
System\Runtime\DurableInstancing\InstanceCompleteException.cs (3)
29
public InstanceCompleteException(
XName
commandName, Guid instanceId)
34
public InstanceCompleteException(
XName
commandName, Guid instanceId, Exception innerException)
39
public InstanceCompleteException(
XName
commandName, Guid instanceId, string message, Exception innerException)
System\Runtime\DurableInstancing\InstanceHandle.cs (3)
27
HashSet<
XName
> boundOwnerEvents;
176
IEnumerable<
XName
> eventsToUnbind = null;
539
this.boundOwnerEvents = new HashSet<
XName
>();
System\Runtime\DurableInstancing\InstanceHandleConflictException.cs (3)
29
public InstanceHandleConflictException(
XName
commandName, Guid instanceId)
34
public InstanceHandleConflictException(
XName
commandName, Guid instanceId, Exception innerException)
39
public InstanceHandleConflictException(
XName
commandName, Guid instanceId, string message, Exception innerException)
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\InstanceKeyCollisionException.cs (3)
33
public InstanceKeyCollisionException(
XName
commandName, Guid instanceId, InstanceKey instanceKey, Guid conflictingInstanceId)
38
public InstanceKeyCollisionException(
XName
commandName, Guid instanceId, InstanceKey instanceKey, Guid conflictingInstanceId, Exception innerException)
43
public InstanceKeyCollisionException(
XName
commandName, Guid instanceId, InstanceKey instanceKey, Guid conflictingInstanceId, string message, Exception innerException)
System\Runtime\DurableInstancing\InstanceKeyCompleteException.cs (3)
32
public InstanceKeyCompleteException(
XName
commandName, InstanceKey instanceKey)
37
public InstanceKeyCompleteException(
XName
commandName, InstanceKey instanceKey, Exception innerException)
42
public InstanceKeyCompleteException(
XName
commandName, Guid instanceId, InstanceKey instanceKey, string message, Exception innerException)
System\Runtime\DurableInstancing\InstanceKeyNotReadyException.cs (3)
32
public InstanceKeyNotReadyException(
XName
commandName, InstanceKey instanceKey)
37
public InstanceKeyNotReadyException(
XName
commandName, InstanceKey instanceKey, Exception innerException)
42
public InstanceKeyNotReadyException(
XName
commandName, Guid instanceId, InstanceKey instanceKey, string message, Exception innerException)
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\InstanceLockedException.cs (16)
34
public InstanceLockedException(
XName
commandName, Guid instanceId)
39
public InstanceLockedException(
XName
commandName, Guid instanceId, Exception innerException)
44
public InstanceLockedException(
XName
commandName, Guid instanceId, string message, Exception innerException)
49
public InstanceLockedException(
XName
commandName, Guid instanceId, Guid instanceOwnerId, IDictionary<
XName
, object> serializableInstanceOwnerMetadata)
54
public InstanceLockedException(
XName
commandName, Guid instanceId, Guid instanceOwnerId, IDictionary<
XName
, object> serializableInstanceOwnerMetadata, Exception innerException)
60
public InstanceLockedException(
XName
commandName, Guid instanceId, Guid instanceOwnerId, IDictionary<
XName
, object> serializableInstanceOwnerMetadata, string message, Exception innerException)
66
Dictionary<
XName
, object> copy = new Dictionary<
XName
, object>(serializableInstanceOwnerMetadata);
67
SerializableInstanceOwnerMetadata = new ReadOnlyDictionaryInternal<
XName
, object>(copy);
76
SerializableInstanceOwnerMetadata = (ReadOnlyDictionaryInternal<
XName
, object>)info.GetValue(SerializableInstanceOwnerMetadataName, typeof(ReadOnlyDictionaryInternal<
XName
, object>));
81
public IDictionary<
XName
, object> SerializableInstanceOwnerMetadata { get; private set; }
91
info.AddValue(SerializableInstanceOwnerMetadataName, SerializableInstanceOwnerMetadata, typeof(ReadOnlyDictionaryInternal<
XName
, object>));
System\Runtime\DurableInstancing\InstanceLockLostException.cs (3)
29
public InstanceLockLostException(
XName
commandName, Guid instanceId)
34
public InstanceLockLostException(
XName
commandName, Guid instanceId, Exception innerException)
39
public InstanceLockLostException(
XName
commandName, Guid instanceId, string message, Exception innerException)
System\Runtime\DurableInstancing\InstanceNotReadyException.cs (3)
29
public InstanceNotReadyException(
XName
commandName, Guid instanceId)
34
public InstanceNotReadyException(
XName
commandName, Guid instanceId, Exception innerException)
39
public InstanceNotReadyException(
XName
commandName, Guid instanceId, string message, Exception innerException)
System\Runtime\DurableInstancing\InstanceOwner.cs (3)
20
readonly Dictionary<
XName
, InstanceNormalEvent> events = new Dictionary<
XName
, InstanceNormalEvent>(1);
32
internal Dictionary<
XName
, InstanceNormalEvent> Events
System\Runtime\DurableInstancing\InstanceOwnerException.cs (3)
31
public InstanceOwnerException(
XName
commandName, Guid instanceOwnerId)
36
public InstanceOwnerException(
XName
commandName, Guid instanceOwnerId, Exception innerException)
41
public InstanceOwnerException(
XName
commandName, Guid instanceOwnerId, string message, Exception innerException)
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 (21)
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)
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\InstancePersistenceCommand.cs (2)
14
protected InstancePersistenceCommand(
XName
name)
23
public
XName
Name { get; private set; }
System\Runtime\DurableInstancing\InstancePersistenceCommandException.cs (6)
30
public InstancePersistenceCommandException(
XName
commandName)
35
public InstancePersistenceCommandException(
XName
commandName, Guid instanceId)
41
public InstancePersistenceCommandException(
XName
commandName, Exception innerException)
46
public InstancePersistenceCommandException(
XName
commandName, string message, Exception innerException)
51
public InstancePersistenceCommandException(
XName
commandName, Guid instanceId, Exception innerException)
57
public InstancePersistenceCommandException(
XName
commandName, Guid instanceId, string message, Exception innerException)
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\InstancePersistenceEvent.cs (3)
12
internal InstancePersistenceEvent(
XName
name)
21
public
XName
Name { get; private set; }
65
protected InstancePersistenceEvent(
XName
name)
System\Runtime\DurableInstancing\InstancePersistenceException.cs (9)
32
public InstancePersistenceException(
XName
commandName)
37
public InstancePersistenceException(
XName
commandName, Exception innerException)
42
public InstancePersistenceException(
XName
commandName, string message)
48
public InstancePersistenceException(
XName
commandName, string message, Exception innerException)
58
CommandName = info.GetValue(CommandNameName, typeof(
XName
)) as
XName
;
61
public
XName
CommandName { get; private set; }
70
info.AddValue(CommandNameName, CommandName, typeof(
XName
));
73
static string ToMessage(
XName
commandName)
System\Runtime\DurableInstancing\InstanceStore.cs (2)
363
internal List<InstancePersistenceEvent> SelectSignaledEvents(IEnumerable<
XName
> eventNames, InstanceOwner owner)
387
internal void RemoveHandleFromEvents(InstanceHandle handle, IEnumerable<
XName
> eventNames, InstanceOwner owner)
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\IPersistencePipelineModule.cs (9)
17
void CollectValues(out IDictionary<
XName
, object> readWriteValues, out IDictionary<
XName
, object> writeOnlyValues);
18
IDictionary<
XName
, object> MapValues(IDictionary<
XName
, object> readWriteValues, IDictionary<
XName
, object> writeOnlyValues);
19
void PublishValues(IDictionary<
XName
, object> readWriteValues);
21
IAsyncResult BeginOnSave(IDictionary<
XName
, object> readWriteValues, IDictionary<
XName
, object> writeOnlyValues, TimeSpan timeout, AsyncCallback callback, object state);
24
IAsyncResult BeginOnLoad(IDictionary<
XName
, object> readWriteValues, TimeSpan timeout, AsyncCallback callback, object state);
System\Runtime\PersistenceMetadataNamespace.cs (6)
15
static
XName
instanceType;
16
static
XName
activationType;
18
public static
XName
InstanceType
31
public static
XName
ActivationType
49
static
XName
was;
51
public static
XName
WAS
System\Runtime\PersistencePipeline.cs (36)
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
80
IDictionary<
XName
, object> readWriteValues;
81
IDictionary<
XName
, object> writeOnlyValues;
86
foreach (KeyValuePair<
XName
, object> value in readWriteValues)
100
foreach (KeyValuePair<
XName
, object> value in writeOnlyValues)
122
List<Tuple<IPersistencePipelineModule, IDictionary<
XName
, object>>> pendingValues = null;
126
IDictionary<
XName
, object> mappedValues = module.MapValues(this.readWriteView, this.writeOnlyView);
131
pendingValues = new List<Tuple<IPersistencePipelineModule, IDictionary<
XName
, object>>>();
133
pendingValues.Add(new Tuple<IPersistencePipelineModule, IDictionary<
XName
, object>>(module, mappedValues));
139
foreach (Tuple<IPersistencePipelineModule, IDictionary<
XName
, object>> writeOnlyValues in pendingValues)
141
foreach (KeyValuePair<
XName
, object> value in writeOnlyValues.Item2)
173
public void SetLoadedValues(IDictionary<
XName
, InstanceValue> values)
179
this.readOnlyView = values as ReadOnlyDictionaryInternal<
XName
, InstanceValue> ?? new ReadOnlyDictionaryInternal<
XName
, InstanceValue>(values);
238
class ValueDictionaryView : IDictionary<
XName
, object>
240
IDictionary<
XName
, InstanceValue> basis;
243
List<
XName
> keys;
246
public ValueDictionaryView(IDictionary<
XName
, InstanceValue> basis, bool writeOnly)
252
public ICollection<
XName
> Keys
258
this.keys = new List<
XName
>(this.basis.Where(value => value.Value.IsWriteOnly() == this.writeOnly).Select(value => value.Key));
276
public object this[
XName
key]
310
public void Add(
XName
key, object value)
315
public bool ContainsKey(
XName
key)
321
public bool Remove(
XName
key)
326
public bool TryGetValue(
XName
key, out object value)
339
public void Add(KeyValuePair<
XName
, object> item)
349
public bool Contains(KeyValuePair<
XName
, object> item)
359
public void CopyTo(KeyValuePair<
XName
, object>[] array, int arrayIndex)
361
foreach (KeyValuePair<
XName
, object> entry in this)
367
public bool Remove(KeyValuePair<
XName
, object> item)
372
public IEnumerator<KeyValuePair<
XName
, object>> GetEnumerator()
374
return this.basis.Where(value => value.Value.IsWriteOnly() == this.writeOnly).Select(value => new KeyValuePair<
XName
, object>(value.Key, value.Value.Value)).GetEnumerator();
System\Runtime\Workflow45Namespace.cs (8)
15
static
XName
definitionIdentity;
16
static
XName
definitionIdentities;
17
static
XName
definitionIdentityFilter;
18
static
XName
workflowApplication;
21
public static
XName
DefinitionIdentity
34
public static
XName
DefinitionIdentities
47
public static
XName
DefinitionIdentityFilter
60
public static
XName
WorkflowApplication
System\Runtime\WorkflowNamespace.cs (14)
17
static
XName
workflowHostType;
18
static
XName
status;
19
static
XName
bookmarks;
20
static
XName
lastUpdate;
21
static
XName
exception;
22
static
XName
workflow;
23
static
XName
keyProvider;
41
public static
XName
WorkflowHostType
54
public static
XName
Status
66
public static
XName
Bookmarks
78
public static
XName
LastUpdate
90
public static
XName
Exception
102
public static
XName
Workflow
114
public static
XName
KeyProvider
System\Runtime\WorkflowServiceNamespace.cs (20)
16
static
XName
controlEndpoint;
17
static
XName
suspendException;
18
static
XName
suspendReason;
19
static
XName
siteName;
20
static
XName
relativeApplicationPath;
21
static
XName
relativeServicePath;
22
static
XName
creationContext;
23
static
XName
service;
24
static
XName
requestReplyCorrelation;
25
static
XName
messageVersionForReplies;
35
public static
XName
ControlEndpoint
47
public static
XName
MessageVersionForReplies
59
public static
XName
RequestReplyCorrelation
71
public static
XName
SuspendReason
83
public static
XName
SiteName
95
public static
XName
SuspendException
108
public static
XName
RelativeApplicationPath
120
public static
XName
RelativeServicePath
132
public static
XName
CreationContext
144
public static
XName
Service
System.ServiceModel (4)
System\ServiceModel\Channels\CorrelationKey.cs (3)
26
: base(GenerateKey(keyString), new Dictionary<
XName
, InstanceValue>(2)
43
public CorrelationKey(IDictionary<string, string> keyData,
XName
scopeName, XNamespace provider)
61
public
XName
ScopeName { get; private set; }
System\ServiceModel\Description\ParameterXPathQueryGenerator.cs (1)
19
public static string CreateFromDataContractSerializer(
XName
serviceContractName, string operationName, string parameterName, bool isReply, Type type, MemberInfo[] pathToMember, out XmlNamespaceManager namespaces)
System.ServiceModel.Activation (4)
System\ServiceModel\Activities\Activation\WorkflowServiceHostFactory.cs (4)
84
service = CreatetWorkflowServiceAndSetCompiledExpressionRoot(null, activityStream,
XName
.Get(XmlConvert.EncodeLocalName(serviceName), serviceNamespace));
125
XName
.Get(XmlConvert.EncodeLocalName(VirtualPathUtility.GetFileName(ServiceHostingEnvironment.FullVirtualPath)),
314
static WorkflowService CreatetWorkflowServiceAndSetCompiledExpressionRoot(string supportedVersionXamlxfilePath, Stream activityStream,
XName
defaultServiceName)
335
internal static WorkflowService CreatetWorkflowService(Stream activityStream,
XName
defaultServiceName)
System.ServiceModel.Activities (116)
System\ServiceModel\Activities\BookmarkNameHelper.cs (1)
13
public static string CreateBookmarkName(string operationName,
XName
serviceContractName)
System\ServiceModel\Activities\ContractInferenceHelper.cs (8)
76
public static void ProvideDefaultNamespace(ref
XName
serviceContractName)
83
serviceContractName =
XName
.Get(serviceContractName.LocalName, NamingHelper.DefaultNamespace);
87
public static ContractDescription CreateContractFromOperation(
XName
serviceContractName, OperationDescription operation)
103
public static ContractDescription CreateOutputChannelContractDescription(
XName
serviceContractName, ProtectionLevel? protectionLevel)
129
public static ContractDescription CreateRequestChannelContractDescription(
XName
serviceContractName, ProtectionLevel? protectionLevel)
159
XName
serviceContractName,
259
XName
contractXName = send.ServiceContractName;
665
string overridingAction,
XName
serviceContractName, string operationName, bool isResponse)
System\ServiceModel\Activities\ContractValidationHelper.cs (1)
632
public static string GetErrorMessageEndpointServiceContractName(
XName
serviceContractName)
System\ServiceModel\Activities\CorrelationExtension.cs (2)
15
public CorrelationExtension(
XName
scopeName)
20
public
XName
ScopeName { get; private set; }
System\ServiceModel\Activities\Description\CorrelationQueryBehavior.cs (2)
60
internal
XName
ScopeName
66
public
XName
ServiceContractName
System\ServiceModel\Activities\Description\SqlWorkflowInstanceStoreBehavior.cs (2)
152
public void Promote(string name, IEnumerable<
XName
> promoteAsSqlVariant, IEnumerable<
XName
> promoteAsBinary)
System\ServiceModel\Activities\Dispatcher\ControlOperationInvoker.cs (1)
851
XName
endpointXName = endpointName == null ? null : WorkflowServiceNamespace.EndpointsPath.GetName(endpointName);
System\ServiceModel\Activities\Dispatcher\CorrelationKeyCalculator.cs (2)
25
XName
scopeName;
29
public CorrelationKeyCalculator(
XName
scopeName)
System\ServiceModel\Activities\Dispatcher\DurableInstanceManager.cs (13)
31
IDictionary<
XName
, InstanceValue> instanceOwnerMetadata;
33
IDictionary<
XName
, InstanceValue> instanceMetadataChanges;
40
this.instanceOwnerMetadata = new Dictionary<
XName
, InstanceValue>();
41
this.instanceMetadataChanges = new Dictionary<
XName
, InstanceValue>();
72
public void AddInstanceOwnerValues(IDictionary<
XName
, object> readWriteValues, IDictionary<
XName
, object> writeOnlyValues)
78
foreach (KeyValuePair<
XName
, object> property in readWriteValues)
90
foreach (KeyValuePair<
XName
, object> property in writeOnlyValues)
102
public void AddInitialInstanceValues(IDictionary<
XName
, object> writeOnlyValues)
108
foreach (KeyValuePair<
XName
, object> pair in writeOnlyValues)
337
XName
endpointName = WorkflowServiceNamespace.EndpointsPath.GetName(endpoint.Name);
467
IDictionary<
XName
, InstanceValue> commandMetadata;
481
foreach (KeyValuePair<
XName
, InstanceValue> metadata in this.instanceOwnerMetadata)
System\ServiceModel\Activities\Dispatcher\PersistenceContext.cs (6)
216
IDictionary<
XName
, InstanceValue> instance,
483
internal static bool TryGetValue<T>(IDictionary<
XName
, InstanceValue> data,
XName
key, out T value)
696
foreach (KeyValuePair<
XName
, InstanceValue> pair in this.directory.InstanceMetadataChanges)
779
public SaveAsyncResult(PersistenceContext persistenceContext, IDictionary<
XName
, InstanceValue> instance, SaveStatus saveStatus, TimeSpan timeout,
809
foreach (KeyValuePair<
XName
, InstanceValue> value in instance)
System\ServiceModel\Activities\Dispatcher\PersistenceProviderDirectory.cs (5)
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)
System\ServiceModel\Activities\Dispatcher\WorkflowServiceInstance.cs (6)
315
public static WorkflowServiceInstance InitializeInstance(PersistenceContext persistenceContext, Guid instanceId, Activity workflowDefinition, WorkflowIdentity definitionIdentity, IDictionary<
XName
, InstanceValue> loadedObject, WorkflowCreationContext creationContext,
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\DurableInstancingOptions.cs (5)
37
internal
XName
ScopeName
43
void IDurableInstancingOptions.SetScopeName(
XName
scopeName)
48
public void AddInstanceOwnerValues(IDictionary<
XName
, object> readWriteValues, IDictionary<
XName
, object> writeOnlyValues)
53
public void AddInitialInstanceValues(IDictionary<
XName
, object> writeOnlyValues)
System\ServiceModel\Activities\HostSettings.cs (1)
19
public
XName
ScopeName { get; set; }
System\ServiceModel\Activities\InternalReceiveMessage.cs (3)
152
public
XName
ServiceContractName
211
XName
savedOriginalServiceContractName = (
XName
)updateContext.GetSavedOriginalValue(ServiceContractNamePropertyName);
System\ServiceModel\Activities\InternalSendMessage.cs (3)
207
public
XName
ServiceContractName
766
new Dictionary<
XName
, InstanceValue>
784
new Dictionary<
XName
, InstanceValue>
System\ServiceModel\Activities\Receive.cs (2)
188
public
XName
ServiceContractName
494
receiveActivity.ServiceContractName =
XName
.Get(operation.DeclaringContract.Name, operation.DeclaringContract.Namespace);
System\ServiceModel\Activities\Send.cs (1)
202
public
XName
ServiceContractName
System\ServiceModel\Activities\SendReply.cs (1)
227
internal void SetContractName(
XName
contractName)
System\ServiceModel\Activities\SerializableInstanceKey.cs (7)
18
IDictionary<
XName
, SerializableInstanceValue> metadata;
25
this.metadata = new Dictionary<
XName
, SerializableInstanceValue>(instanceKey.Metadata.Count);
26
foreach (KeyValuePair<
XName
, InstanceValue> pair in instanceKey.Metadata)
50
internal IDictionary<
XName
, SerializableInstanceValue> Metadata
72
IDictionary<
XName
, InstanceValue> metadata = null;
75
metadata = new Dictionary<
XName
, InstanceValue>(this.metadata.Count);
76
foreach (KeyValuePair<
XName
, SerializableInstanceValue> pair in this.metadata)
System\ServiceModel\Activities\WorkflowDefinitionProvider.cs (1)
56
public void GetDefinitionIdentityMetadata(IDictionary<
XName
, InstanceValue> metadataCollection)
System\ServiceModel\Activities\WorkflowService.cs (23)
36
IDictionary<
XName
, ContractDescription> cachedInferredContracts;
37
IDictionary<
XName
, Collection<CorrelationQuery>> correlationQueryByContract;
44
XName
inferedServiceName;
60
public
XName
Name
152
internal
XName
InternalName
171
this.inferedServiceName =
XName
.Get(XmlConvert.EncodeLocalName(this.Body.DisplayName));
178
internal IDictionary<
XName
, Collection<CorrelationQuery>> CorrelationQueries
394
public virtual IDictionary<
XName
, ContractDescription> GetContractDescriptions()
401
this.correlationQueryByContract = new Dictionary<
XName
, Collection<CorrelationQuery>>();
404
IDictionary<
XName
, ContractDescription> inferredContracts = new Dictionary<
XName
, ContractDescription>();
409
XName
contractXName = FixServiceContractName(receive.ServiceContractName);
545
XName
contractXName = FixServiceContractName(receive.ServiceContractName);
572
XName
contractXName = FixServiceContractName(receive.ServiceContractName);
712
XName
FixServiceContractName(
XName
serviceContractName)
715
XName
contractXName = serviceContractName ?? this.InternalName;
735
void CollectCorrelationQuery(ref Collection<CorrelationQuery> queries,
XName
serviceContractName, CorrelationQuery correlationQuery)
753
void CollectCorrelationQueryFromReply(ref Collection<CorrelationQuery> correlationQueries,
XName
serviceContractName,
852
XName
serviceContractXName;
855
public ContractAndOperationNameTuple(
XName
serviceContractXName, string operationName)
1060
XName
serviceName = workflowService.FixServiceContractName(receiveActivity.ServiceContractName);
1249
XName
contractXName = sendReplyActivity.Request.ServiceContractName;
System\ServiceModel\Activities\WorkflowServiceHost.cs (12)
30
static readonly
XName
mexContractXName =
XName
.Get(ServiceMetadataBehavior.MexContractName, ServiceMetadataBehavior.MexContractNamespace);
45
IDictionary<
XName
, ContractDescription> inferredContracts;
46
IDictionary<
XName
, Collection<CorrelationQuery>> correlationQueries;
146
internal
XName
ServiceName
289
public ServiceEndpoint AddServiceEndpoint(
XName
serviceContractName, Binding binding, string address,
296
public ServiceEndpoint AddServiceEndpoint(
XName
serviceContractName, Binding binding, Uri address,
313
ServiceEndpoint AddServiceEndpointCore(
XName
serviceContractName, Binding binding, EndpointAddress address,
408
foreach (
XName
contractName in this.inferredContracts.Keys)
593
XName
endpointContractName =
XName
.Get(serviceEndpoint.Contract.Name, serviceEndpoint.Contract.Namespace);
686
this.DurableInstancingOptions.ScopeName =
XName
.Get(XmlConvert.EncodeLocalName(Path.GetFileName(virtualPathExtension.VirtualPath)),
System\ServiceModel\Endpoint.cs (1)
38
public
XName
ServiceContractName
System\ServiceModel\XamlIntegration\ServiceXNameTypeConverter.cs (3)
27
return
XName
.Get(stringValue);
40
XName
name = value as
XName
;
System\ServiceModel\XamlIntegration\XNameTypeConverter.cs (4)
61
return
XName
.Get(stringValue);
83
return
XName
.Get(localName, ns);
88
XName
name = value as
XName
;
System.Workflow.Runtime (2)
System\Activities\Statements\Interop.cs (2)
1718
protected override IAsyncResult BeginOnSave(IDictionary<
XName
, object> readWriteValues, IDictionary<System.Xml.Linq.
XName
, object> writeOnlyValues, TimeSpan timeout, AsyncCallback callback, object state)
System.Xml.Linq (138)
System\Xml\Linq\XComponentModel.cs (10)
161
XName
changeState;
286
if (e != null && value.element == e.parent && value.name != null && (value.name == e.Name || value.name == (changeState as
XName
))) {
402
Func<XElement,
XName
, IEnumerable<T>> func;
404
internal
XName
name;
406
public XDeferredAxis(Func<XElement,
XName
, IEnumerable<T>> func, XElement element,
XName
name) {
438
Func<XElement,
XName
, T> func;
440
internal
XName
name;
442
public XDeferredSingleton(Func<XElement,
XName
, T> func, XElement element,
XName
name) {
System\Xml\Linq\XLinq.cs (124)
32
public sealed class XName : IEquatable<
XName
>
53
/// <seealso cref="
XName
.Namespace"/>
81
/// Returns an <see cref="
XName
"/> object created from the specified expanded name.
87
/// An <see cref="
XName
"/> object constructed from the specified expanded name.
89
public static
XName
Get(string expandedName) {
103
/// Returns an <see cref="
XName
"/> object from a local name and a namespace.
108
public static
XName
Get(string localName, string namespaceName) {
118
public static implicit operator
XName
(string expandedName) {
123
/// Determines whether the specified <see cref="
XName
"/> is equal to the current <see cref="
XName
"/>.
127
/// true if the specified <see cref="
XName
"/> is equal to the current XName; otherwise false.
130
/// For two <see cref="
XName
"/> objects to be equal, they must have the same expanded name.
137
/// Serves as a hash function for <see cref="
XName
"/>. GetHashCode is suitable
151
/// Returns a value indicating whether two instances of <see cref="
XName
"/> are equal.
160
public static bool operator ==(
XName
left,
XName
right) {
165
/// Returns a value indicating whether two instances of <see cref="
XName
"/> are not equal.
174
public static bool operator !=(
XName
left,
XName
right) {
179
/// Indicates whether the current <see cref="
XName
"/> is equal to
180
/// the specified <see cref="
XName
"/>
182
/// <param name="other">The <see cref="
XName
"/> to compare with the
183
/// current <see cref="
XName
"/></param>
185
/// Returns true if the current <see cref="
XName
"/> is equal to
186
/// the specified <see cref="
XName
"/>. Returns false otherwise.
188
bool IEquatable<
XName
>.Equals(
XName
other) {
195
/// serialize the <see cref="
XName
"/>
222
return
XName
.Get(expandedName);
246
XHashtable<
XName
> names;
257
names = new XHashtable<
XName
>(ExtractLocalName, NamesCapacity);
274
public
XName
GetName(string localName) {
341
/// Combines an <see cref="XNamespace"/> object with a local name to create an <see cref="
XName
"/>.
347
public static
XName
operator +(XNamespace ns, string localName) {
411
/// Returns an <see cref="
XName
"/> created from this XNamespace <see cref="
XName
"/> and a portion of the passed in
415
internal
XName
GetName(string localName, int index, int count) {
420
XName
name;
468
private static string ExtractLocalName(
XName
n) {
1635
public IEnumerable<XElement> Ancestors(
XName
name) {
1770
public IEnumerable<XElement> ElementsAfterSelf(
XName
name) {
1794
public IEnumerable<XElement> ElementsBeforeSelf(
XName
name) {
1951
internal IEnumerable<XElement> GetAncestors(
XName
name, bool self) {
1959
IEnumerable<XElement> GetElementsAfterSelf(
XName
name) {
1968
IEnumerable<XElement> GetElementsBeforeSelf(
XName
name) {
2543
/// Returns the Descendant <see cref="XElement"/>s with the passed in <see cref="
XName
"/> as an IEnumerable
2546
/// <param name="name">The <see cref="
XName
"/> to match against descendant <see cref="XElement"/>s.</param>
2548
public IEnumerable<XElement> Descendants(
XName
name) {
2553
/// Returns the child element with this <see cref="
XName
"/> or null if there is no child element
2554
/// with a matching <see cref="
XName
"/>.
2558
/// The <see cref="
XName
"/> to match against this <see cref="XContainer"/>s child elements.
2561
/// An <see cref="XElement"/> child that matches the <see cref="
XName
"/> passed in, or null.
2563
public XElement Element(
XName
name) {
2589
/// Returns the child elements of this <see cref="XContainer"/> that match the <see cref="
XName
"/> passed in.
2592
/// The <see cref="
XName
"/> to match against the <see cref="XElement"/> children of this <see cref="XContainer"/>.
2596
/// a matching <see cref="
XName
"/>.
2598
public IEnumerable<XElement> Elements(
XName
name) {
2959
internal IEnumerable<XElement> GetDescendants(
XName
name, bool self) {
2981
IEnumerable<XElement> GetElements(
XName
name) {
3427
/// An element has an <see cref="
XName
"/>, optionally one or more attributes,
3455
internal
XName
name;
3464
public XElement(
XName
name) {
3480
public XElement(
XName
name, object content) : this(name) {
3497
public XElement(
XName
name, params object[] content) : this(name, (object)content) { }
3589
public
XName
Name {
3638
/// to the root node. Optionally an <see cref="
XName
"/> can be passed
3658
/// <see cref="
XName
"/>. If this <see cref="XElement"/>'s <see cref="
XName
"/>
3659
/// matches the <see cref="
XName
"/> passed in then it will be invluded in the
3664
/// The <see cref="
XName
"/> of the target ancestor.
3668
/// ancestors of this <see cref="XElement"/> with a matching <see cref="
XName
"/>.
3670
public IEnumerable<XElement> AncestorsAndSelf(
XName
name) {
3676
/// <see cref="
XName
"/>.
3679
/// The <see cref="
XName
"/> of the <see cref="XAttribute"/> to get.
3682
/// The <see cref="XAttribute"/> with the <see cref="
XName
"/> passed in. If there is no <see cref="XAttribute"/>
3683
/// with this <see cref="
XName
"/> then null is returned.
3685
public XAttribute Attribute(
XName
name) {
3698
/// an <see cref="
XName
"/> can be given to target a specific <see cref="XAttribute"/>(s).
3714
/// in <see cref="
XName
"/>.
3718
/// The <see cref="
XName
"/> of the targeted <see cref="XAttribute"/>.
3723
public IEnumerable<XAttribute> Attributes(
XName
name) {
3737
/// specification of a type of descendant to return, or a specific <see cref="
XName
"/>
3754
/// Returns the descendants of this <see cref="XElement"/> that have a matching <see cref="
XName
"/>
3756
/// <seealso cref="XElement.DescendantsAndSelf(
XName
)"/>
3759
/// The <see cref="
XName
"/> of the descendant <see cref="XElement"/> that is being targeted.
3763
/// <see cref="XElement"/>s that have this <see cref="
XName
"/>.
3765
public IEnumerable<XElement> DescendantsAndSelf(
XName
name) {
4348
public void SetAttributeValue(
XName
name, object value) {
4383
public void SetElementValue(
XName
name, object value) {
5027
IEnumerable<XAttribute> GetAttributes(
XName
name) {
6551
internal
XName
name;
6570
public XAttribute(
XName
name, object value) {
6609
public
XName
Name {
7141
static void ValidateAttribute(
XName
name, string value) {
7194
internal
XName
name;
7201
public XStreamingElement(
XName
name) {
7211
public XStreamingElement(
XName
name, object content) : this(name) {
7220
public XStreamingElement(
XName
name, params object[] content) : this(name) {
7227
public
XName
Name {
7531
/// Returns the <see cref="XAttribute"/>s that have a matching <see cref="
XName
"/>. Each
7533
/// of <see cref="XElement"/> are scanned for a matching <see cref="
XName
"/>.
7537
/// Attributes with a matching <see cref="
XName
"/> for every <see cref="XElement"/> in
7540
public static IEnumerable<XAttribute> Attributes(this IEnumerable<XElement> source,
XName
name) {
7562
/// and it's parent up to the root) that have a matching <see cref="
XName
"/>. This is done for each
7567
/// and it's parent up to the root) that have a matching <see cref="
XName
"/>. This is done for each
7570
public static IEnumerable<XElement> Ancestors<T>(this IEnumerable<T> source,
XName
name) where T: XNode {
7595
/// that match the passed in <see cref="
XName
"/>. This is done for each
7601
/// that match the passed in <see cref="
XName
"/>. This is done for each
7604
public static IEnumerable<XElement> AncestorsAndSelf(this IEnumerable<XElement> source,
XName
name) {
7652
/// and their children down to the leaf level) that have a matching <see cref="
XName
"/>. This is done
7657
/// and their children down to the leaf level) that have a matching <see cref="
XName
"/>. This is done
7660
public static IEnumerable<XElement> Descendants<T>(this IEnumerable<T> source,
XName
name) where T: XContainer {
7668
/// that match the passed in <see cref="
XName
"/>. This is done for each
7702
/// to the leaf nodes) that match the passed in <see cref="
XName
"/>. This is done for
7708
/// to the leaf nodes) that match the passed in <see cref="
XName
"/>. This is done for
7711
public static IEnumerable<XElement> DescendantsAndSelf(this IEnumerable<XElement> source,
XName
name) {
7737
public static IEnumerable<XElement> Elements<T>(this IEnumerable<T> source,
XName
name) where T: XContainer {
7777
static IEnumerable<XAttribute> GetAttributes(IEnumerable<XElement> source,
XName
name) {
7791
static IEnumerable<XElement> GetAncestors<T>(IEnumerable<T> source,
XName
name, bool self) where T: XNode {
7825
static IEnumerable<XElement> GetDescendants<T>(IEnumerable<T> source,
XName
name, bool self) where T: XContainer {
7851
static IEnumerable<XElement> GetElements<T>(IEnumerable<T> source,
XName
name) where T: XContainer {
7871
XName
attrName;
8374
XName
name = XNamespace.Xml.GetName("lang");
8394
XName
name = XNamespace.Xml.GetName("space");
System\Xml\Linq\XNodeNavigator.cs (1)
766
XName
name = a.Name;
System\Xml\Linq\XNodeValidator.cs (3)
23
XName
xsiTypeName;
24
XName
xsiNilName;
179
XName
name = a.Name;
XamlBuildTask (14)
Microsoft\Build\Tasks\Xaml\GenerateTemporaryAssemblyTask.cs (14)
90
XElement projectElement = projectDocument.Element(
XName
.Get("Project", MSBuildNamespace));
145
IEnumerable<XElement> itemGroups = project.Elements(
XName
.Get("ItemGroup", MSBuildNamespace));
146
itemGroups.Elements(
XName
.Get(itemName, MSBuildNamespace)).Remove();
154
XElement newItemGroup = new XElement(
XName
.Get("ItemGroup", MSBuildNamespace));
158
XElement newElement = new XElement(
XName
.Get(itemName, MSBuildNamespace));
176
XElement newItemGroup = new XElement(
XName
.Get("ItemGroup", MSBuildNamespace));
180
XElement newResource = new XElement(
XName
.Get("EmbeddedResource", MSBuildNamespace));
183
XElement type = new XElement(
XName
.Get("Type", MSBuildNamespace), "Non-Resx");
186
XElement withCulture = new XElement(
XName
.Get("WithCulture", MSBuildNamespace), "false");
198
IEnumerable<XElement> itemGroups = project.Elements(
XName
.Get("PropertyGroup", MSBuildNamespace));
199
itemGroups.Elements(
XName
.Get(propertyName, MSBuildNamespace)).Remove();
207
XElement newPropertyGroup = new XElement(
XName
.Get("PropertyGroup", MSBuildNamespace));
213
XElement newElement = new XElement(
XName
.Get(prop.Name, MSBuildNamespace));
217
newElement.SetAttributeValue(
XName
.Get("Condition", string.Empty), prop.Condition);