Exemplo n.º 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 }));
 }
Exemplo n.º 2
0
 void When(RoleGroupRevokedFromUserAccount @event)
 {
     _roleGroups.Remove(new RoleGroupId(@event.RoleGroupId));
 }