/// <summary> /// Initializes a new instance of the class. /// </summary> public BaseListener(ListenerOptions listenerOptions, ILog log) { this.listenerOptions = listenerOptions ?? throw new ArgumentNullException(nameof(listenerOptions)); this.log = log ?? throw new ArgumentNullException(nameof(log)); tcpListener = null; clients = null; protectionQueue = null; loginUnblockDT = DateTime.MinValue; thread = null; terminated = false; }
/// <summary> /// Initializes a new instance of the class. /// </summary> public ListenerBase(ListenerOptions listenerOptions, ILog log) { this.listenerOptions = listenerOptions ?? throw new ArgumentNullException(nameof(listenerOptions)); this.log = log ?? throw new ArgumentNullException(nameof(log)); tcpListener = null; clients = null; protector = null; thread = null; terminated = false; CustomFunctions = null; }