Esempio n. 1
0
 /// <summary>
 /// The activate options.
 /// </summary>
 public override void ActivateOptions()
 {
     _transport = new UdpTransport {MaxChunkSize = MaxChunkSize};
 }
Esempio n. 2
0
 public override void ActivateOptions()
 {
     _transport = (UseUdpTransport)
         ? (GelfTransport)new UdpTransport { MaxChunkSize = MaxChunkSize }
         : (GelfTransport)new AmqpTransport
         {
             VirtualHost = GrayLogServerAmqpVirtualHost,
             User = GrayLogServerAmqpUser,
             Password = GrayLogServerAmqpPassword,
             Queue = GrayLogServerAmqpQueue
         };
 }