Beispiel #1
0
    internal PortalHub() : base()
    {
      lock(s_Lock)
      {
        if (s_Instance!=null)
             throw new WaveException(StringConsts.PORTAL_HUB_INSTANCE_IS_ALREADY_AVAILABLE_ERROR);

        m_Portals = new Registry<Portal>(false);

        s_Instance = this;
      }
    }
Beispiel #2
0
        internal PortalHub() : base()
        {
            lock (s_Lock)
            {
                if (s_Instance != null)
                {
                    throw new WaveException(StringConsts.PORTAL_HUB_INSTANCE_IS_ALREADY_AVAILABLE_ERROR);
                }

                m_Portals = new Registry <Portal>(false);

                s_Instance = this;
            }
        }
Beispiel #3
0
    protected override void Destructor()
    {
      lock(s_Lock)
      {
        if (s_Instance != null)
        {
          s_Instance = null;
         
          foreach(var portal in m_Portals)
            portal.Dispose();
          
          DisposableObject.DisposeAndNull(ref m_ContentFS);

          base.Destructor();
        }
      }
    }
Beispiel #4
0
        protected override void Destructor()
        {
            lock (s_Lock)
            {
                if (s_Instance != null)
                {
                    s_Instance = null;

                    foreach (var portal in m_Portals)
                    {
                        portal.Dispose();
                    }

                    DisposableObject.DisposeAndNull(ref m_ContentFS);

                    base.Destructor();
                }
            }
        }