Class MessageFailedDomainEventHandler
Implements
INotificationHandler<MessageFailedDomainEvent>
Inherited Members
Namespace: NotifyHub.NotificationService.Application.Features.Events
Assembly: NotifyHub.NotificationService.Application.dll
Syntax
public class MessageFailedDomainEventHandler : INotificationHandler<MessageFailedDomainEvent>
Constructors
| Edit this page View SourceMessageFailedDomainEventHandler(ILogger<MessageFailedDomainEvent>, IMapper, INotificationLogRepository)
Declaration
public MessageFailedDomainEventHandler(ILogger<MessageFailedDomainEvent> logger, IMapper mapper, INotificationLogRepository repository)
Parameters
Type | Name | Description |
---|---|---|
ILogger<MessageFailedDomainEvent> | logger | |
IMapper | mapper | |
INotificationLogRepository | repository |
Methods
| Edit this page View SourceHandle(MessageFailedDomainEvent, CancellationToken)
Handles a notification
Declaration
public Task Handle(MessageFailedDomainEvent messageEvent, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
MessageFailedDomainEvent | messageEvent | |
CancellationToken | cancellationToken | Cancellation token |
Returns
Type | Description |
---|---|
Task |
Implements
MediatR.INotificationHandler<TNotification>