Exemple #1
0
 public void Handle(RoleGroupRevokedFromUserAccount message)
 {
     _observer.OnNext(
         new SqlTextStatement(
             "DELETE FROM [UserAccountEffectiveRoles] WHERE [UserAccountId] = @UserAccountId AND [RoleGroupId] = @RoleGroupId)",
             new { UserAccountId = message.UserAccountId, RoleGroupId = message.RoleGroupId }));
 }
Exemple #2
0
 void When(RoleGroupRevokedFromUserAccount @event)
 {
     _roleGroups.Remove(new RoleGroupId(@event.RoleGroupId));
 }