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