Ejemplo n.º 1
0
        public async Task <BookCacheModel> DecreaseAsync(BookCacheModel book)
        {
            book.Amount = await cache.SortedSetDecrementAsync(book.Key, book.Price.ToString("N8"), (double)book.Amount)
                          .ContinueWith(x => (decimal)x.Result);

            return(book);
        }
Ejemplo n.º 2
0
 public BookChangedEventArgs(BookCacheModel book, bool isIecrease = true)
 {
     this.book       = book;
     this.isIncrease = isIecrease;
 }