Exemplo n.º 1
0
        public override Task Handle(WrapperNotification <CreatedNotification> notification,
                                    CancellationToken cancellationToken)
        {
            base.Handle(notification, cancellationToken);

            _cache.DeleteAsync <PaginatedList <ContactDto> >(new
                                                             { notification.Notification.Item.OwnerUserId, PageNumber = 1, PageSize = 10 });

            return(Task.CompletedTask);
        }
Exemplo n.º 2
0
            // Helpers.

            private async Task NotifyAsync(Contact contact)
            {
                await _cache.DeleteAsync <PaginatedList <ContactDto> >(new
                                                                       { contact.OwnerUserId, PageNumber = 1, PageSize = 10 });
            }