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