Beispiel #1
0
 public async Task SendInviteAsync(User sender, Organization organization, Invite invite) {
     MailMessage msg = _emailGenerator.GenerateMessage(new InviteModel {
         Sender = sender,
         Organization = organization,
         Invite = invite,
         BaseUrl = Settings.Current.BaseURL
     }, "Invite");
     msg.To.Add(invite.EmailAddress);
     await QueueMessage(msg);
 }
Beispiel #2
0
 public void SendInvite(User sender, Organization organization, Invite invite) {}
Beispiel #3
0
 public Task SendInviteAsync(User sender, Organization organization, Invite invite) {
     return Task.Delay(0);
 }
Beispiel #4
0
 public Task SendInviteAsync(User sender, Organization organization, Invite invite)
 {
     return Task.FromResult(0);
 }
 public Task SendInviteAsync(User sender, Organization organization, Invite invite) {
     return Task.Run(() => SendInvite(sender, organization, invite));
 }