I want to add rules during registration and so far I did try setting it in the web config but that did not work.. maybe because my rule is custom..
The following code, does not work but I think it is close.
//add default isband rule to band profiles..
IEnumerable<MonoSoftware.MonoX.API.Role> Rules = new IEnumerable<MonoSoftware.MonoX.API.Role>();
Rules = SecurityUtility.UserRoleIds(userId);
MonoSoftware.MonoX.API.RoleAdapter ruleadb = MonoSoftware.MonoX.API.RoleAdapter.GetInstance();
any help ?