Пример #1
0
 public ChatService()
 {
     if (_memoryCashe == null)
     {
         _memoryCashe = new InMemoryCashe();
     }
     if (_repository == null)
     {
         _repository = new Repository(_memoryCashe);
     }
 }
Пример #2
0
 internal Repository(InMemoryCashe cashe)
 {
     memoryCashe = cashe;
 }