コード例 #1
0
 public Task Handle(AccountCreated notification, CancellationToken cancellationToken)
 => _notificator.SendEmail(
     "You account has been created",
     GetBody(notification),
     notification.Identity.Email);
コード例 #2
0
 public Task Handle(AccountLocked notification, CancellationToken cancellationToken)
 => _notificator.SendEmail(
     "Your account has been lock out",
     "Your account has been locked out for security reasons.",
     notification.Identity.Email);
コード例 #3
0
 public Task Handle(AccountConfirmed notification, CancellationToken cancellationToken)
 => _notificator.SendEmail(
     "Your account has been confirmed",
     "Your account is enabled and ready to be used.",
     notification.Identity.Email);