public static void RenewInstance()
        {
            lock (padlock)
            {
                if (_controllerInstance != null)
                {
                    _controllerInstance.Dispose();
                }

                _controllerInstance = NewInstance();
            }
        }
        public static IJJChatController GetInstance()
        {
            lock (padlock)
            {
                if (_controllerInstance == null)
                {
                    _controllerInstance = NewInstance();
                }

                return(_controllerInstance);
            }
        }
Пример #3
0
 public UserController()
 {
     _controllerInstance = JJChatControllerInstanceManager.GetInstance();
 }
Пример #4
0
 public FriendController()
 {
     _controllerInstance = JJChatControllerInstanceManager.GetInstance();
 }