/// <summary> /// Initializes a new instance of the <see cref="ZmqMonitorEventArgs"/> class. /// </summary> /// <param name="monitor">The <see cref="ZmqMonitor"/> that triggered the event.</param> /// <param name="address">The peer address.</param> public ZmqMonitorEventArgs(ZmqMonitor monitor, string address) { this.Monitor = monitor; byte[] temp = Encoding.Unicode.GetBytes(address); this.Address = Encoding.ASCII.GetString(temp, 0, temp.Length); }
internal ZmqMonitorIntervalEventArgs(ZmqMonitor monitor, MonitorEventData data) : base(monitor, data.Address) { this.Interval = data.Value; }
/// <summary> /// Initializes a new instance of the <see cref="ZmqMonitorEventArgs"/> class. /// </summary> /// <param name="monitor">The <see cref="ZmqMonitor"/> that triggered the event.</param> /// <param name="address">The peer address.</param> public ZmqMonitorEventArgs(ZmqMonitor monitor, string address) { this.Monitor = monitor; this.Address = address; }
internal ZmqMonitorErrorEventArgs(ZmqMonitor monitor, MonitorEventData data) : base(monitor, data.Address) { this.ErrorCode = data.Value; }