예제 #1
0
        public CEDHandler()
        {
            m_MCS          = new MsgSrv();
            m_clientCookie = m_MCS.LogOn("CEDHandler-" + System.Guid.NewGuid().ToString(), this);

            if (m_clientCookie == null)
            {
                return;
            }

            m_clientID     = m_clientCookie.PartnerID;
            m_subscription = m_MCS.Subscribe(m_clientID, "CedChallenge", "", "", "", "", "", 0);
        }
예제 #2
0
        //~CEDHandler()
        //{
        //    try
        //    {
        //        m_MCS.Unsubscribe(m_clientID, m_subscription);
        //        m_MCS.LogOff(ref m_clientCookie);
        //    }
        //    catch(Exception) {}
        //}

        public void Dispose()
        {
            try
            {
                if (m_clientCookie != null)
                {
                    m_MCS.Unsubscribe(m_clientID, m_subscription);
                    m_MCS.LogOff(ref m_clientCookie);
                }

                m_clientCookie = null;
            }
            catch (Exception) { }
        }
예제 #3
0
        public CEDForm()
        {
            InitializeComponent();
            cedDescription.Visible = false;
            cedButton1.Visible     = false;
            cedButton2.Visible     = false;
            cedButton3.Visible     = false;
            cedButton4.Visible     = false;
            cedButton5.Visible     = false;

            m_MCS          = new MsgSrv();
            m_clientCookie = m_MCS.LogOn("CEDForm-" + System.Guid.NewGuid().ToString(), this);

            if (m_clientCookie == null)
            {
                return;
            }

            m_clientID     = m_clientCookie.PartnerID;
            m_subscription = m_MCS.Subscribe(m_clientID, "CedResponse", "", "", "", "", "", 0);
        }