Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
ParadoxDataContractOperationBehavior.cs
Go to the documentation of this file.
1 // Copyright (c) 2014 Silicon Studio Corp. (http://siliconstudio.co.jp)
2 // This file is distributed under GPL v3. See LICENSE.md for details.
3 using System;
4 using System.Collections.Generic;
5 using System.Runtime.Serialization;
6 using System.ServiceModel;
7 using System.ServiceModel.Description;
8 using System.Xml;
9 
10 namespace SiliconStudio.BuildEngine
11 {
13  {
14  private static ParadoxXmlObjectSerializer serializer = new ParadoxXmlObjectSerializer();
15 
16  public ParadoxDataContractOperationBehavior(OperationDescription operation)
17  : base(operation)
18  {
19  }
20 
22  OperationDescription operation,
23  DataContractFormatAttribute dataContractFormatAttribute)
24  : base(operation, dataContractFormatAttribute)
25  {
26  }
27 
29  Type type, string name, string ns, IList<Type> knownTypes)
30  {
31  return serializer;
32  }
33 
35  Type type, XmlDictionaryString name, XmlDictionaryString ns,
36  IList<Type> knownTypes)
37  {
38  return serializer;
39  }
40  }
41 }
override XmlObjectSerializer CreateSerializer(Type type, string name, string ns, IList< Type > knownTypes)
override XmlObjectSerializer CreateSerializer(Type type, XmlDictionaryString name, XmlDictionaryString ns, IList< Type > knownTypes)
ParadoxDataContractOperationBehavior(OperationDescription operation, DataContractFormatAttribute dataContractFormatAttribute)