public async Task DeleteCounter(Counter counter)
        {
            await repository.Delete(counter).ConfigureAwait(false);

            messenger.Publish(new CountersChangedMessage(this));
        }
Ejemplo n.º 2
0
        public async Task DeleteCounter(Counter counter) //This method is async and awaits the Delete call
        {
            await repository.Delete(counter).ConfigureAwait(false);

            messenger.Publish(new CountersChangedMessage(this)); //Whenever a counter is deleted, the message is published
        }
Ejemplo n.º 3
0
 public Task DeleteCounter(Counter counter)
 {
     return(repository.Delete(counter));
 }