private Roles.IRoleHandler <TUser, TRole, TContext> Create(TContext context, Configuration.RoleDBRole roleinfo, TRole role) { if (roleinfo.CustomerRoleHandleType != null) { var type = Type.GetType(roleinfo.CustomerRoleHandleType); return((Roles.IRoleHandler <TUser, TRole, TContext>)Activator.CreateInstance(type, new object[] { roleinfo, role })); } return(null); }
public BaseRoleHandler(Configuration.RoleDBRole roleinfo, TRole role) { this.Role = role; this.IsDefault = roleinfo.IsDefault; }