/// <summary> /// Initializes a new instance of the <see cref="Logit.Zmq.OutputWriter"/> class. /// </summary> /// <param name="zt">ØMQ Transport to use.</param> public OutputWriter(Transport zt) : base(CultureInfo.InvariantCulture) { if (zt != null) { this.socket = zt.Socket; } }
/// <summary> /// Initializes a new instance of the <see cref="Logit.Log4Net.Appender"/> class. /// </summary> /// <remarks>This adds a shutdonw hook to tidy up the ØMQ Connection</remarks> public Appender() { System.AppDomain.CurrentDomain.ProcessExit += (object sender, EventArgs e) => this.OnClose(); this.zt = new Transport(); }