public static EventorDbContext GetInstance()
 {
     if (_instance == null)
     {
         _instance = new EventorDbContext();
     }
     return(_instance);
 }
Esempio n. 2
0
 private ChatRepository()
 {
     _connectedUsers = new Dictionary <EventorUser, Guid>();
     _mappings       = new Dictionary <string, string>();
     _database       = EventorDbContext.GetInstance();
 }