Example #1
0
 public override void ActivateOptions()
 {
     _messageBuilder = new XmlMessageBuilder();
     _messageBuilder.ActivateOptions();
     _connectionFactory = new ConnectionFactory {
         HostName           = HostName,
         VirtualHost        = VirtualHost,
         UserName           = UserName,
         Password           = Password,
         RequestedHeartbeat = RequestedHeartbeat,
         Port = Port
     };
     _worker = new WorkerThread <LoggingEvent>(string.Concat("Worker for log4net appender '", Name, "'"), TimeSpan.FromSeconds(FlushInterval), Process);
 }
Example #2
0
 public override void ActivateOptions()
 {
     _messageBuilder = new XmlMessageBuilder();
     _messageBuilder.ActivateOptions();
     _connectionFactory = new ConnectionFactory {
         HostName = HostName,
         VirtualHost = VirtualHost,
         UserName = UserName,
         Password = Password,
         RequestedHeartbeat = RequestedHeartbeat,
         Port = Port
     };
     _worker = new WorkerThread<LoggingEvent>(string.Concat("Worker for log4net appender '", Name, "'"), TimeSpan.FromSeconds(FlushInterval), Process);
 }