Ejemplo n.º 1
0
 /// <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);
 }
Ejemplo n.º 2
0
 internal ZmqMonitorIntervalEventArgs(ZmqMonitor monitor, MonitorEventData data)
     : base(monitor, data.Address)
 {
     this.Interval = data.Value;
 }
Ejemplo n.º 3
0
 /// <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;
 }
Ejemplo n.º 4
0
 internal ZmqMonitorErrorEventArgs(ZmqMonitor monitor, MonitorEventData data)
     : base(monitor, data.Address)
 {
     this.ErrorCode = data.Value;
 }