public static InMemoryRepository GetInstance() { if (_instance == null) { _instance = new InMemoryRepository(); } return _instance; }
public ChatHub() { _repository = InMemoryRepository.GetInstance(); }
public static InMemoryRepository GetInstance() { return _instance ?? (_instance = new InMemoryRepository()); }
public HomeController() { _repository = InMemoryRepository.GetInstance(); }