16 instantiations of WorkflowMarkupSerializerMapping
System.Workflow.ComponentModel (16)
AuthoringOM\Serializer\WorkflowMarkupSerializerMapping.cs (16)
74
WorkflowMarkupSerializerMapping.Activities = new
WorkflowMarkupSerializerMapping
(StandardXomlKeys.WorkflowPrefix, StandardXomlKeys.WorkflowXmlNs, "System.Workflow.Activities", AssemblyRef.ActivitiesAssemblyRef);
77
WorkflowMarkupSerializerMapping.ComponentModel = new
WorkflowMarkupSerializerMapping
(StandardXomlKeys.WorkflowPrefix, StandardXomlKeys.WorkflowXmlNs, "System.Workflow.ComponentModel", Assembly.GetExecutingAssembly().FullName);
80
WorkflowMarkupSerializerMapping.Serialization = new
WorkflowMarkupSerializerMapping
(StandardXomlKeys.Definitions_XmlNs_Prefix, StandardXomlKeys.Definitions_XmlNs, "System.Workflow.ComponentModel.Serialization", Assembly.GetExecutingAssembly().FullName);
83
WorkflowMarkupSerializerMapping.Rules = new
WorkflowMarkupSerializerMapping
(StandardXomlKeys.WorkflowPrefix, StandardXomlKeys.WorkflowXmlNs, "System.Workflow.Activities.Rules", AssemblyRef.ActivitiesAssemblyRef);
86
WorkflowMarkupSerializerMapping.ComponentModelDesign = new
WorkflowMarkupSerializerMapping
(StandardXomlKeys.WorkflowPrefix, StandardXomlKeys.WorkflowXmlNs, "System.Workflow.ComponentModel.Design", Assembly.GetExecutingAssembly().FullName);
89
WorkflowMarkupSerializerMapping.wellKnownMappings.Add(new
WorkflowMarkupSerializerMapping
(StandardXomlKeys.WorkflowPrefix, StandardXomlKeys.WorkflowXmlNs, "System.Workflow.Runtime", AssemblyRef.RuntimeAssemblyRef));
90
WorkflowMarkupSerializerMapping.wellKnownMappings.Add(new
WorkflowMarkupSerializerMapping
(StandardXomlKeys.WorkflowPrefix, StandardXomlKeys.WorkflowXmlNs, "System.Workflow.ComponentModel.Compiler", Assembly.GetExecutingAssembly().FullName));
92
WorkflowMarkupSerializerMapping.wellKnownMappings.Add(new
WorkflowMarkupSerializerMapping
(StandardXomlKeys.WorkflowPrefix, StandardXomlKeys.WorkflowXmlNs, "System.Workflow.Activities.Rules.Design", AssemblyRef.ActivitiesAssemblyRef));
93
WorkflowMarkupSerializerMapping.wellKnownMappings.Add(new
WorkflowMarkupSerializerMapping
(StandardXomlKeys.WorkflowPrefix, StandardXomlKeys.WorkflowXmlNs, "System.Workflow.Runtime.Configuration", AssemblyRef.RuntimeAssemblyRef));
94
WorkflowMarkupSerializerMapping.wellKnownMappings.Add(new
WorkflowMarkupSerializerMapping
(StandardXomlKeys.WorkflowPrefix, StandardXomlKeys.WorkflowXmlNs, "System.Workflow.Runtime.Hosting", AssemblyRef.RuntimeAssemblyRef));
95
WorkflowMarkupSerializerMapping.wellKnownMappings.Add(new
WorkflowMarkupSerializerMapping
(StandardXomlKeys.WorkflowPrefix, StandardXomlKeys.WorkflowXmlNs, "System.Workflow.Runtime.Tracking", AssemblyRef.RuntimeAssemblyRef));
284
matchingMappings.Add(new
WorkflowMarkupSerializerMapping
(reader.Prefix, xmlNamespace, clrNamespace, assemblyName));
314
matchingMappings.Add(new
WorkflowMarkupSerializerMapping
(reader.Prefix, xmlNamespace, xmlnsDefinition.ClrNamespace, assemblyName));
316
collectedMappings.Add(new
WorkflowMarkupSerializerMapping
(reader.Prefix, xmlNamespace, xmlnsDefinition.ClrNamespace, assemblyName));
370
WorkflowMarkupSerializerMapping mapping = new
WorkflowMarkupSerializerMapping
(prefix, xmlNamespace, clrNamespace, assemblyName, type.Assembly.FullName);
390
matchingMapping = new
WorkflowMarkupSerializerMapping
(prefix, xmlNamespace, clrNamespace, assemblyName, type.Assembly.FullName);
108 references to WorkflowMarkupSerializerMapping
System.Workflow.ComponentModel (108)
AuthoringOM\Serializer\WorkflowMarkupSerializationManager.cs (28)
38
private Dictionary<int,
WorkflowMarkupSerializerMapping
> clrNamespaceBasedMappings = new Dictionary<int,
WorkflowMarkupSerializerMapping
>();
39
private Dictionary<string, List<
WorkflowMarkupSerializerMapping
>> xmlNamespaceBasedMappings = new Dictionary<string, List<
WorkflowMarkupSerializerMapping
>>();
40
private Dictionary<string, List<
WorkflowMarkupSerializerMapping
>> prefixBasedMappings = new Dictionary<string, List<
WorkflowMarkupSerializerMapping
>>();
55
AddMappings(
WorkflowMarkupSerializerMapping
.WellKnownMappings);
158
WorkflowMarkupSerializerMapping
mappingForType = null;
162
IList<
WorkflowMarkupSerializerMapping
> collectedMappings = null;
163
WorkflowMarkupSerializerMapping
.GetMappingFromType(this, type, out mappingForType, out collectedMappings);
164
AddMappings(new List<
WorkflowMarkupSerializerMapping
>(new
WorkflowMarkupSerializerMapping
[] { mappingForType }));
191
resolvedType =
WorkflowMarkupSerializerMapping
.ResolveWellKnownTypes(this, xmlns, typeName);
197
List<
WorkflowMarkupSerializerMapping
> xmlnsMappings = null;
200
IList<
WorkflowMarkupSerializerMapping
> matchingMappings = null;
201
IList<
WorkflowMarkupSerializerMapping
> collectedMappings = null;
202
WorkflowMarkupSerializerMapping
.GetMappingsFromXmlNamespace(this, xmlns, out matchingMappings, out collectedMappings);
206
xmlnsMappings = new List<
WorkflowMarkupSerializerMapping
>(matchingMappings);
209
foreach (
WorkflowMarkupSerializerMapping
xmlnsMapping in xmlnsMappings)
375
internal IDictionary<int,
WorkflowMarkupSerializerMapping
> ClrNamespaceBasedMappings
383
internal IDictionary<string, List<
WorkflowMarkupSerializerMapping
>> XmlNamespaceBasedMappings
391
internal Dictionary<string, List<
WorkflowMarkupSerializerMapping
>> PrefixBasedMappings
399
internal void AddMappings(IList<
WorkflowMarkupSerializerMapping
> mappingsToAdd)
401
foreach (
WorkflowMarkupSerializerMapping
mapping in mappingsToAdd)
406
List<
WorkflowMarkupSerializerMapping
> xmlnsMappings = null;
409
xmlnsMappings = new List<
WorkflowMarkupSerializerMapping
>();
414
List<
WorkflowMarkupSerializerMapping
> prefixMappings = null;
417
prefixMappings = new List<
WorkflowMarkupSerializerMapping
>();
AuthoringOM\Serializer\WorkflowMarkupSerializer.cs (3)
99
foreach (
WorkflowMarkupSerializerMapping
mapping in markupSerializationManager.ClrNamespaceBasedMappings.Values)
1687
List<
WorkflowMarkupSerializerMapping
> xmlnsMappings = null;
1691
WorkflowMarkupSerializerMapping
xmlnsMapping = xmlnsMappings[0];
AuthoringOM\Serializer\WorkflowMarkupSerializerMapping.cs (76)
30
private static readonly List<
WorkflowMarkupSerializerMapping
> wellKnownMappings;
32
private static readonly
WorkflowMarkupSerializerMapping
Activities;
33
private static readonly
WorkflowMarkupSerializerMapping
ComponentModel;
34
private static readonly
WorkflowMarkupSerializerMapping
Serialization;
35
private static readonly
WorkflowMarkupSerializerMapping
Rules;
36
private static readonly
WorkflowMarkupSerializerMapping
ComponentModelDesign;
46
WorkflowMarkupSerializerMapping
.wellKnownTypes = new Dictionary<string, Type>();
47
WorkflowMarkupSerializerMapping
.wellKnownTypes.Add(typeof(ThrowActivity).Name, typeof(ThrowActivity));
48
WorkflowMarkupSerializerMapping
.wellKnownTypes.Add(typeof(ThrowDesigner).Name, typeof(ThrowDesigner));
49
WorkflowMarkupSerializerMapping
.wellKnownTypes.Add(typeof(SuspendActivity).Name, typeof(SuspendActivity));
50
WorkflowMarkupSerializerMapping
.wellKnownTypes.Add(typeof(SuspendDesigner).Name, typeof(SuspendDesigner));
51
WorkflowMarkupSerializerMapping
.wellKnownTypes.Add(typeof(CancellationHandlerActivity).Name, typeof(CancellationHandlerActivity));
52
WorkflowMarkupSerializerMapping
.wellKnownTypes.Add(typeof(CancellationHandlerActivityDesigner).Name, typeof(CancellationHandlerActivityDesigner));
53
WorkflowMarkupSerializerMapping
.wellKnownTypes.Add(typeof(CompensateActivity).Name, typeof(CompensateActivity));
54
WorkflowMarkupSerializerMapping
.wellKnownTypes.Add(typeof(CompensateDesigner).Name, typeof(CompensateDesigner));
55
WorkflowMarkupSerializerMapping
.wellKnownTypes.Add(typeof(CompensationHandlerActivity).Name, typeof(CompensationHandlerActivity));
56
WorkflowMarkupSerializerMapping
.wellKnownTypes.Add(typeof(CompensationHandlerActivityDesigner).Name, typeof(CompensationHandlerActivityDesigner));
57
WorkflowMarkupSerializerMapping
.wellKnownTypes.Add(typeof(FaultHandlerActivity).Name, typeof(FaultHandlerActivity));
58
WorkflowMarkupSerializerMapping
.wellKnownTypes.Add(typeof(FaultHandlerActivityDesigner).Name, typeof(FaultHandlerActivityDesigner));
59
WorkflowMarkupSerializerMapping
.wellKnownTypes.Add(typeof(FaultHandlersActivity).Name, typeof(FaultHandlersActivity));
60
WorkflowMarkupSerializerMapping
.wellKnownTypes.Add(typeof(FaultHandlersActivityDesigner).Name, typeof(FaultHandlersActivityDesigner));
61
WorkflowMarkupSerializerMapping
.wellKnownTypes.Add(typeof(SynchronizationScopeActivity).Name, typeof(SynchronizationScopeActivity));
62
WorkflowMarkupSerializerMapping
.wellKnownTypes.Add(typeof(SequenceDesigner).Name, typeof(SequenceDesigner));
63
WorkflowMarkupSerializerMapping
.wellKnownTypes.Add(typeof(TransactionScopeActivity).Name, typeof(TransactionScopeActivity));
64
WorkflowMarkupSerializerMapping
.wellKnownTypes.Add(typeof(TransactionScopeActivityDesigner).Name, typeof(TransactionScopeActivityDesigner));
65
WorkflowMarkupSerializerMapping
.wellKnownTypes.Add(typeof(PropertySegment).Name, typeof(PropertySegment));
66
WorkflowMarkupSerializerMapping
.wellKnownTypes.Add(typeof(CompensatableTransactionScopeActivity).Name, typeof(CompensatableTransactionScopeActivity));
67
WorkflowMarkupSerializerMapping
.wellKnownTypes.Add(typeof(ActivityDesigner).Name, typeof(ActivityDesigner));
72
WorkflowMarkupSerializerMapping
.wellKnownMappings = new List<
WorkflowMarkupSerializerMapping
>();
74
WorkflowMarkupSerializerMapping
.Activities = new WorkflowMarkupSerializerMapping(StandardXomlKeys.WorkflowPrefix, StandardXomlKeys.WorkflowXmlNs, "System.Workflow.Activities", AssemblyRef.ActivitiesAssemblyRef);
75
WorkflowMarkupSerializerMapping
.wellKnownMappings.Add(
WorkflowMarkupSerializerMapping
.Activities);
77
WorkflowMarkupSerializerMapping
.ComponentModel = new WorkflowMarkupSerializerMapping(StandardXomlKeys.WorkflowPrefix, StandardXomlKeys.WorkflowXmlNs, "System.Workflow.ComponentModel", Assembly.GetExecutingAssembly().FullName);
78
WorkflowMarkupSerializerMapping
.wellKnownMappings.Add(
WorkflowMarkupSerializerMapping
.ComponentModel);
80
WorkflowMarkupSerializerMapping
.Serialization = new WorkflowMarkupSerializerMapping(StandardXomlKeys.Definitions_XmlNs_Prefix, StandardXomlKeys.Definitions_XmlNs, "System.Workflow.ComponentModel.Serialization", Assembly.GetExecutingAssembly().FullName);
81
WorkflowMarkupSerializerMapping
.wellKnownMappings.Add(
WorkflowMarkupSerializerMapping
.Serialization);
83
WorkflowMarkupSerializerMapping
.Rules = new WorkflowMarkupSerializerMapping(StandardXomlKeys.WorkflowPrefix, StandardXomlKeys.WorkflowXmlNs, "System.Workflow.Activities.Rules", AssemblyRef.ActivitiesAssemblyRef);
84
WorkflowMarkupSerializerMapping
.wellKnownMappings.Add(
WorkflowMarkupSerializerMapping
.Rules);
86
WorkflowMarkupSerializerMapping
.ComponentModelDesign = new WorkflowMarkupSerializerMapping(StandardXomlKeys.WorkflowPrefix, StandardXomlKeys.WorkflowXmlNs, "System.Workflow.ComponentModel.Design", Assembly.GetExecutingAssembly().FullName);
87
WorkflowMarkupSerializerMapping
.wellKnownMappings.Add(
WorkflowMarkupSerializerMapping
.ComponentModelDesign);
89
WorkflowMarkupSerializerMapping
.wellKnownMappings.Add(new WorkflowMarkupSerializerMapping(StandardXomlKeys.WorkflowPrefix, StandardXomlKeys.WorkflowXmlNs, "System.Workflow.Runtime", AssemblyRef.RuntimeAssemblyRef));
90
WorkflowMarkupSerializerMapping
.wellKnownMappings.Add(new WorkflowMarkupSerializerMapping(StandardXomlKeys.WorkflowPrefix, StandardXomlKeys.WorkflowXmlNs, "System.Workflow.ComponentModel.Compiler", Assembly.GetExecutingAssembly().FullName));
92
WorkflowMarkupSerializerMapping
.wellKnownMappings.Add(new WorkflowMarkupSerializerMapping(StandardXomlKeys.WorkflowPrefix, StandardXomlKeys.WorkflowXmlNs, "System.Workflow.Activities.Rules.Design", AssemblyRef.ActivitiesAssemblyRef));
93
WorkflowMarkupSerializerMapping
.wellKnownMappings.Add(new WorkflowMarkupSerializerMapping(StandardXomlKeys.WorkflowPrefix, StandardXomlKeys.WorkflowXmlNs, "System.Workflow.Runtime.Configuration", AssemblyRef.RuntimeAssemblyRef));
94
WorkflowMarkupSerializerMapping
.wellKnownMappings.Add(new WorkflowMarkupSerializerMapping(StandardXomlKeys.WorkflowPrefix, StandardXomlKeys.WorkflowXmlNs, "System.Workflow.Runtime.Hosting", AssemblyRef.RuntimeAssemblyRef));
95
WorkflowMarkupSerializerMapping
.wellKnownMappings.Add(new WorkflowMarkupSerializerMapping(StandardXomlKeys.WorkflowPrefix, StandardXomlKeys.WorkflowXmlNs, "System.Workflow.Runtime.Tracking", AssemblyRef.RuntimeAssemblyRef));
138
WorkflowMarkupSerializerMapping
mapping = value as
WorkflowMarkupSerializerMapping
;
195
internal static IList<
WorkflowMarkupSerializerMapping
> WellKnownMappings
199
return
WorkflowMarkupSerializerMapping
.wellKnownMappings;
207
List<
WorkflowMarkupSerializerMapping
> knownMappings = new List<
WorkflowMarkupSerializerMapping
>();
210
if (!
WorkflowMarkupSerializerMapping
.wellKnownTypes.TryGetValue(typeName, out resolvedType))
214
knownMappings.Add(
WorkflowMarkupSerializerMapping
.Activities);
215
knownMappings.Add(
WorkflowMarkupSerializerMapping
.ComponentModel);
219
knownMappings.Add(
WorkflowMarkupSerializerMapping
.Activities);
220
knownMappings.Add(
WorkflowMarkupSerializerMapping
.ComponentModel);
221
knownMappings.Add(
WorkflowMarkupSerializerMapping
.ComponentModelDesign);
225
knownMappings.Add(
WorkflowMarkupSerializerMapping
.ComponentModelDesign);
226
knownMappings.Add(
WorkflowMarkupSerializerMapping
.Activities);
231
knownMappings.Add(
WorkflowMarkupSerializerMapping
.Rules);
237
knownMappings.Add(
WorkflowMarkupSerializerMapping
.Serialization);
242
foreach (
WorkflowMarkupSerializerMapping
mapping in knownMappings)
254
internal static void GetMappingsFromXmlNamespace(WorkflowMarkupSerializationManager serializationManager, string xmlNamespace, out IList<
WorkflowMarkupSerializerMapping
> matchingMappings, out IList<
WorkflowMarkupSerializerMapping
> collectedMappings)
256
matchingMappings = new List<
WorkflowMarkupSerializerMapping
>();
257
collectedMappings = new List<
WorkflowMarkupSerializerMapping
>();
324
internal static void GetMappingFromType(WorkflowMarkupSerializationManager manager, Type type, out
WorkflowMarkupSerializerMapping
matchingMapping, out IList<
WorkflowMarkupSerializerMapping
> collectedMappings)
327
collectedMappings = new List<
WorkflowMarkupSerializerMapping
>();
370
WorkflowMarkupSerializerMapping
mapping = new WorkflowMarkupSerializerMapping(prefix, xmlNamespace, clrNamespace, assemblyName, type.Assembly.FullName);
AuthoringOM\Serializer\XamlInterfaces.cs (1)
190
List<
WorkflowMarkupSerializerMapping
> xmlnsMappings = null;