Exemplo n.º 1
0
        public CustomRoleProvider(string currentLogin, DataAccess.IRoleDao roleDao)
            : base()
        {
            if (roleDao == null)
            {
                throw new ArgumentException("roleDao");
            }

            _roleDao      = roleDao;
            _currentLogin = currentLogin;
        }
Exemplo n.º 2
0
 public CustomRoleProvider()
     : base()
 {
     _currentLogin = System.Web.HttpContext.Current.User.Identity.Name;
     _roleDao      = new DataAccess.SQLSupport.RoleDao();
 }