Example #1
0
 protected override void Destructor()
 {
     base.Destructor();
     deleteChannels();
     DisposeAndNull(ref m_Gateway);
     s_Instance = null;
 }
Example #2
0
        public WebMessageSystemService(object director) : base(director)
        {
            lock (s_Lock)
            {
                if (s_Instance != null)
                {
                    throw new WebMessagingException("{0} is already allocated".Args(GetType().Name));
                }

                m_Channels = new Registry <Channel>();
                m_Gateway  = new MessageService(this);

                s_Instance = this;
            }
        }