protected async override void OnExecute(object parameter)
 {
     if (parameter is IUserDescriptor userDescriptor)
     {
         await UserUtility.SendMessageAsync(this.authenticator, userDescriptor);
     }
     else if (parameter is IDomainMemberDescriptor domainMemberDescriptor)
     {
         await DomainMemberUtility.SendMessageAsync(this.authenticator, domainMemberDescriptor);
     }
 }
Esempio n. 2
0
 public async Task SendMessageAsync()
 {
     await DomainMemberUtility.SendMessageAsync(this.authentication, this);
 }