예제 #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);
 }
예제 #2
0
 public void SendInvite(User sender, Organization organization, Invite invite) {}
예제 #3
0
 public Task SendInviteAsync(User sender, Organization organization, Invite invite) {
     return Task.Delay(0);
 }
예제 #4
0
 public Task SendInviteAsync(User sender, Organization organization, Invite invite)
 {
     return Task.FromResult(0);
 }
예제 #5
0
 public Task SendInviteAsync(User sender, Organization organization, Invite invite) {
     return Task.Run(() => SendInvite(sender, organization, invite));
 }