public Task Handle(WrapperNotification <TNotification> notification, CancellationToken cancellationToken)
        {
            _logger.LogInformation("Processing the notification. Handler: {Handler}. Notification: {Notification}",
                                   nameof(ConsoleNotificationHandler <TNotification>), notification.Notification.GetType().Name);

            return(Task.CompletedTask);
        }
示例#2
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);
        }