/// <summary> /// Initialises an instance of the <see cref="UdpListenerService"/> class. /// </summary> /// <param name="socket"> /// The socket instance to use for listening to Owl electricity monitoring broadcasts. /// </param> /// <param name="logger"></param> public UdpListenerService(ILogger logger, UdpSocket socket) : base(logger, typeof(UdpListenerService)) { socket.ShouldNotBeNull(); m_Socket = socket; }
/// <summary> /// Initialises an instance of the <see cref="UdpListenerService"/> class. /// </summary> /// <param name="socket"> /// The socket instance to use for listening to Owl electricity monitoring broadcasts. /// </param> public UdpListenerService(UdpSocket socket) : base(typeof(UdpListenerService)) { socket.ShouldNotBeNull(); m_Socket = socket; }