예제 #1
0
        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());
        }
예제 #2
0
 /// <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();
 }
예제 #3
0
 public async Task HandleAsync(UserInvitedEvent args)
 {
     await SendNotificationAsync <Guid?, User, UserDto>(args, args.User, args.User.FullName);
 }