Ejemplo n.º 1
0
        public void Init(IHostApplication host)
        {
            if (!(host is IHostExtensionApplication))
            {
                throw new InvalidCastException("This module is only availabel for extensions");
            }

            m_Host          = (IHostExtensionApplication)host;
            m_Host.Connect += OnConnect;
        }
Ejemplo n.º 2
0
        public void Init(IHostApplication host)
        {
            if (!(host is IHostExtensionApplication))
            {
                throw new InvalidCastException("Only extension host is supported for this module");
            }

            m_Host          = (IHostExtensionApplication)host;
            m_Host.Connect += OnConnect;
        }