public MessageSerializer(SerializerResolverBuilder serializerResolverBuilder)
 {
     this.packetInspector    = new PacketInspector();
     this.serializerResolver = serializerResolverBuilder.Build();
     this.headerSerializer   = new HeaderSerializer();
 }
 public PacketInspectorService()
 {
     this.packetInspector = new PacketInspector();
 }
 public MessageSerializer()
 {
     this.packetInspector    = new PacketInspector();
     this.serializerResolver = new SerializerResolverBuilder <MessageBody>().Build();
     this.headerSerializer   = new HeaderSerializer();
 }
 public MessageSerializer(SerializerResolverBuilder serializerResolverBuilder)
 {
     this.packetInspector    = new PacketInspector(new TypeInfo(typeof(MessageBody)));
     this.serializerResolver = serializerResolverBuilder.Build();
     this.headerSerializer   = new HeaderSerializer();
 }
Beispiel #5
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();
 }