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

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

            m_Host              = (IHostExtension)host;
            m_Host.Initialized += OnHostInitialized;
            m_Host.Connect     += OnConnect;
        }
 public void Init(IHost host)
 {
     m_Host              = (IHostExtension)host;
     m_Host.Initialized += OnInitialized;
     m_Host.Connect     += OnConnect;
 }