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