Example #1
0
 public SerializationContext(SerializerResolver serializerResolver)
 {
     this.serializerResolver = serializerResolver;
     this.diagnosticInfos    = new List <DiagnosticInfo>();
     this.flags = new Dictionary <string, int>();
 }
 public MessageSerializer()
 {
     this.packetInspector    = new PacketInspector();
     this.serializerResolver = new SerializerResolverBuilder <MessageBody>().Build();
     this.headerSerializer   = new HeaderSerializer();
 }
 public MessageSerializer(SerializerResolverBuilder serializerResolverBuilder)
 {
     this.packetInspector    = new PacketInspector();
     this.serializerResolver = serializerResolverBuilder.Build();
     this.headerSerializer   = new HeaderSerializer();
 }
 public SerializationContext(SerializerResolver serializerResolver)
 {
     this.serializerResolver = serializerResolver;
     this.diagnosticInfos = new List<DiagnosticInfo>();
     this.flags = new Dictionary<string, int>();
 }
Example #5
0
 public MessageSerializer(SerializerResolverBuilder serializerResolverBuilder)
 {
     this.packetInspector    = new PacketInspector(new TypeInfo(typeof(MessageBody)));
     this.serializerResolver = serializerResolverBuilder.Build();
     this.headerSerializer   = new HeaderSerializer();
 }
Example #6
0
 public ChatMessageSerializer()
 {
     this.packetInspector    = new PacketInspector(new TypeInfo(typeof(ChatMessageBody)));
     this.serializerResolver = new SerializerResolverBuilder <ChatMessageBody>().Build();
     this.headerSerializer   = new ChatHeaderSerializer();
 }
 public MessageSerializer(SerializerResolverBuilder serializerResolverBuilder)
 {
     this.packetInspector = new PacketInspector();
     this.serializerResolver = serializerResolverBuilder.Build();
     this.headerSerializer = new HeaderSerializer();
 }
 public MessageSerializer()
 {
     this.packetInspector = new PacketInspector();
     this.serializerResolver = new SerializerResolverBuilder<MessageBody>().Build();
     this.headerSerializer = new HeaderSerializer();
 }