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); }
//~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) { } }
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); }