コード例 #1
0
 /// <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;
     }
 }
コード例 #2
0
ファイル: Appender.cs プロジェクト: georgesimms/logit-dotnet
        /// <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();
        }