Beispiel #1
0
        private void Stop()
        {
            _notifyIcon.Visible = false;

            try
            {
                if (_registered)
                {
                    _registered = false;

                    IrssMessage message = new IrssMessage(MessageType.UnregisterClient, MessageFlags.Request);
                    _client.Send(message);
                }
            }
            catch
            {
            }

            StopClient();

            if (_mediaState != null)
            {
                _mediaState.Dispose();
                _mediaState = null;
            }
        }
Beispiel #2
0
        public void Uninitialize()
        {
            if (bool.Parse(CommonFunctions.GetSetting("Service_Xml_ClearWhenNoMedia")))
            {
                _application.UpdateXml(new string[] { "", "", "", "0" });
            }

            _mediaState.Dispose();
        }