Ejemplo 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 IDomainMemberDescriptor domainMemberDescriptor)
     {
         await DomainMemberUtility.SendMessageAsync(this.authenticator, domainMemberDescriptor);
     }
 }
Ejemplo n.º 2
0
 protected override bool OnCanExecute(object parameter)
 {
     if (parameter is IUserDescriptor userDescriptor)
     {
         return(UserUtility.CanSendMessage(this.authenticator, userDescriptor));
     }
     else if (parameter is IDomainMemberDescriptor domainMemberDescriptor)
     {
         return(DomainMemberUtility.CanSendMessage(this.authenticator, domainMemberDescriptor));
     }
     return(false);
 }
Ejemplo n.º 3
0
 public async Task KickAsync()
 {
     await DomainMemberUtility.KickAsync(this.authentication, this);
 }
Ejemplo n.º 4
0
 public async Task SetOwnerAsync()
 {
     await DomainMemberUtility.SetOwnerAsync(this.authentication, this);
 }
Ejemplo n.º 5
0
 public async Task SendMessageAsync()
 {
     await DomainMemberUtility.SendMessageAsync(this.authentication, this);
 }