public void Dispose()
 {
     serverHandler = null;
     volumeController = null;
     packetFactory = null;
     packetRequest = null;
     volumeInfoResponse = null;
     preparableVolumeResponse = null;
 }
 public void Dispose()
 {
     serverHandler            = null;
     volumeController         = null;
     packetFactory            = null;
     packetRequest            = null;
     volumeInfoResponse       = null;
     preparableVolumeResponse = null;
 }
        public LdpRemoteVolumeSender()
        {
            serverHandler = LdpServer.GetInstance();
            packetFactory = new LdpProtocolPacketFactory();
            serverHandler.GetListenerChannel.AddListener(this);

            volumeController = new LdpVolumeController();
            volumeController.OnMute += volumeController_OnMute;
            volumeController
                .GetDevice
                .AudioEndpointVolume
                .OnVolumeNotification += AudioEndpointVolume_OnVolumeNotification;
        }
        public LdpRemoteVolumeSender()
        {
            serverHandler = LdpServer.GetInstance();
            packetFactory = new LdpProtocolPacketFactory();
            serverHandler.GetListenerChannel.AddListener(this);

            volumeController         = new LdpVolumeController();
            volumeController.OnMute += volumeController_OnMute;
            volumeController
            .GetDevice
            .AudioEndpointVolume
            .OnVolumeNotification += AudioEndpointVolume_OnVolumeNotification;
        }