Esempio n. 1
0
        public Task Update(long id, double value)
        {
            Cacher.Clear();
            var entityForChange = EntityById(id);

            entityForChange.Setter(value);
            return(Repository.SaveChangesAsync());
        }
Esempio n. 2
0
        public Task Remove(long id)
        {
            Cacher.Clear();
            var entityForDelete = EntityById(id);

            Repository.Table().Remove(entityForDelete);
            return(Repository.SaveChangesAsync());
        }
 /// <summary>
 /// Shutdown various Services.
 /// </summary>
 protected void ShutdownServices()
 {
     Logger.ShutDown();
     Cacher.Clear();
 }
Esempio n. 4
0
 /// <summary>
 /// Clear the cache on shutdown of the application.
 /// </summary>
 public override void ShutDown()
 {
     Cacher.Clear();
 }