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); } }
public UserController() { _controllerInstance = JJChatControllerInstanceManager.GetInstance(); }
public FriendController() { _controllerInstance = JJChatControllerInstanceManager.GetInstance(); }