Beispiel #1
0
 public static InMemoryRepository GetInstance()
 {
     if (_instance == null)
     {
         _instance = new InMemoryRepository();
     }
     return _instance;
 }
Beispiel #2
0
 public ChatHub()
 {
     _repository = InMemoryRepository.GetInstance();
 }
 public static InMemoryRepository GetInstance()
 {
     return _instance ?? (_instance = new InMemoryRepository());
 }
Beispiel #4
0
 public HomeController()
 {
     _repository = InMemoryRepository.GetInstance();
 }