예제 #1
0
 /// <summary>
 ///     Create a new NetMQMonitorErrorEventArgs that contains the given monitor, address, and error-code.
 /// </summary>
 /// <param name="monitor">The <see cref="NetMQMonitor" /> that raised this event.</param>
 /// <param name="address">The address of the event.</param>
 /// <param name="socketEvent">The type of socket event that occurred.</param>
 /// <param name="errorCode">The error code associated with this event.</param>
 public NetMQMonitorErrorEventArgs([NotNull] NetMQMonitor monitor, [NotNull] string address, ErrorCode errorCode, SocketEvents socketEvent)
     : base(monitor, address, socketEvent)
 {
     this.ErrorCode = errorCode;
 }
예제 #2
0
 /// <summary>
 ///     Create a new NetMQMonitorEventArgs that contains the given monitor and address.
 /// </summary>
 /// <param name="monitor">The <see cref="NetMQMonitor" /> that raised this event.</param>
 /// <param name="address">The address of the event.</param>
 /// <param name="socketEvent">The type of socket event that occurred.</param>
 protected NetMQMonitorEventArgs([NotNull] NetMQMonitor monitor, [NotNull] string address, SocketEvents socketEvent)
 {
     this.Monitor     = monitor;
     this.Address     = address;
     this.SocketEvent = socketEvent;
 }
예제 #3
0
 /// <summary>
 ///     Create a new NetMQMonitorSocketEventArgs that contains the given monitor, address, and socket.
 /// </summary>
 /// <param name="monitor">The <see cref="NetMQMonitor" /> that raised this event.</param>
 /// <param name="address">The address of the event.</param>
 /// <param name="socketEvent">The type of socket event that occurred.</param>
 /// <param name="socket">The socket upon which this event occurred.</param>
 public NetMQMonitorSocketEventArgs([NotNull] NetMQMonitor monitor, [NotNull] string address, [NotNull] AsyncSocket socket, SocketEvents socketEvent)
     : base(monitor, address, socketEvent)
 {
     this.Socket = socket;
 }
예제 #4
0
 /// <summary>
 ///     Create a new NetMQMonitorIntervalEventArgs containing the given NetMQMonitor, address, and interval.
 /// </summary>
 /// <param name="monitor">the NetMQMonitor</param>
 /// <param name="address">The a string denoting the address</param>
 /// <param name="interval">The interval, in milliseconds.</param>
 /// <param name="socketEvent">The type of socket event that occurred.</param>
 public NetMQMonitorIntervalEventArgs([NotNull] NetMQMonitor monitor, [NotNull] string address, int interval, SocketEvents socketEvent)
     : base(monitor, address, socketEvent)
 {
     this.Interval = interval;
 }