Beispiel #1
0
 protected override ITransport InitializeTransport(IEasyGelfLogger logger)
 {
     var configuration = new AmqpTransportConfiguration
         {
             ConnectionUri = ConnectionUri, 
             Exchange = Exchange, 
             ExchangeType = ExchangeType, 
             Queue = Queue, 
             RoutingKey = RoutingKey,
             Persistent = Persistent,
         };
     var encoder = new CompositeEncoder(new GZipEncoder(), new ChunkingEncoder(new MessageBasedIdGenerator(), MessageSize));
     return new AmqpTransport(configuration, encoder, new GelfMessageSerializer());
 }
Beispiel #2
0
 public AmqpTransport(AmqpTransportConfiguration configuration, ITransportEncoder encoder, IGelfMessageSerializer messageSerializer)
 {
     this.configuration     = configuration;
     this.encoder           = encoder;
     this.messageSerializer = messageSerializer;
 }
Beispiel #3
0
 public AmqpTransport(AmqpTransportConfiguration configuration, ITransportEncoder encoder, IGelfMessageSerializer messageSerializer)
 {
     this.configuration = configuration;
     this.encoder = encoder;
     this.messageSerializer = messageSerializer;
 }