private async Task <IHttpActionResult> Handle(UserInvitedEvent @event) { string recipient = @event.Email; const string Subject = "Välkommen till Snittlistan!"; string activationUri = @event.ActivationUri; await Emails.InviteUser(recipient, Subject, activationUri); return(Ok()); }
/// <summary> /// Handles the Click event of the ButtonInvite control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="RoutedEventArgs"/> instance containing the event data.</param> private void ButtonInvite_Click(object sender, RoutedEventArgs e) { UserInvitedEvent.Invoke(userName.Text); userName.Text = ""; Hide(); }
public async Task HandleAsync(UserInvitedEvent args) { await SendNotificationAsync <Guid?, User, UserDto>(args, args.User, args.User.FullName); }