示例#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());
 }
示例#2
0
 public AmqpTransport(AmqpTransportConfiguration configuration, ITransportEncoder encoder, IGelfMessageSerializer messageSerializer)
 {
     this.configuration     = configuration;
     this.encoder           = encoder;
     this.messageSerializer = messageSerializer;
 }
示例#3
0
 public AmqpTransport(AmqpTransportConfiguration configuration, ITransportEncoder encoder, IGelfMessageSerializer messageSerializer)
 {
     this.configuration = configuration;
     this.encoder = encoder;
     this.messageSerializer = messageSerializer;
 }