public void AddUpdateSessionToDevice(SerializerSession session)
 {
     using (CgmUnitOfWork uow = new CgmUnitOfWork())
     {
         uow.Device.AddUpdateSessionToDevice(session);
     }
 }
 public void GetOrSetSessionAndSettings(SerializerSession session)
 {
     using (CgmUnitOfWork uow = new CgmUnitOfWork())
     {
         uow.Device.GetOrSetSessionAndSettings(session);
     }
 }
 public void SaveSession(SerializerSession session)
 {
     if (session != null)
     {
         using (CgmUnitOfWork uow = new CgmUnitOfWork())
         {
             uow.Device.AddUpdateSessionToDevice(session);
             uow.History.SaveHistory(session);
         }
     }
 }
Exemple #4
0
 public CommunicationMessageRepository(CgmUnitOfWork uow) : base(uow)
 {
 }
 public SettingRepository(CgmUnitOfWork uow) : base(uow)
 {
 }
Exemple #6
0
 public HistoryStatusRepository(CgmUnitOfWork uow) : base(uow)
 {
 }
 public DeviceRepository(CgmUnitOfWork uow) : base(uow)
 {
 }
Exemple #8
0
 public BaseRepository(CgmUnitOfWork uow)
 {
     _uow = uow;
 }