Esempio n. 1
0
 protected async override void OnExecute(object parameter)
 {
     if (parameter is IUserDescriptor userDescriptor)
     {
         await UserUtility.SendMessageAsync(this.authenticator, userDescriptor);
     }
     else if (parameter is IDomainUserDescriptor domainUserDescriptor)
     {
         await DomainUserUtility.SendMessageAsync(this.authenticator, domainUserDescriptor);
     }
 }
 public async Task SendMessageAsync()
 {
     await DomainUserUtility.SendMessageAsync(this.authentication, this);
 }