예제 #1
0
 public override void Initialize(string name, NameValueCollection config)
 {
   base.Initialize(name, config);
   //Dependency Injection in .NET, Mark Seemann, page 228
   this.mvcMembershipService = null; //see above, dependencies were a ball-ache so went for simple membership
   //var container = (IAccountContainer)HttpContext.Current.Application["container"];
   //this.mvcMembershipService = container.ResolveMembershipService();
 }
예제 #2
0
 public override void Initialize(string name, NameValueCollection config)
 {
     base.Initialize(name, config);
     //Dependency Injection in .NET, Mark Seemann, page 228
     this.mvcMembershipService = null; //see above, dependencies were a ball-ache so went for simple membership
     //var container = (IAccountContainer)HttpContext.Current.Application["container"];
     //this.mvcMembershipService = container.ResolveMembershipService();
 }
예제 #3
0
    public override void Initialize(string name, NameValueCollection config)
    {
      if (config == null)
        throw new ArgumentException("config");
      if (string.IsNullOrEmpty(name))
        name = "MVCRoleProvider";
      if (string.IsNullOrEmpty(config["description"]))
      {
        config.Remove("description");
        config.Add("description", "Authentication Role Provider");
      }
      base.Initialize(name, config);

      //Dependency Injection in .NET, Mark Seemann, page 228
      this.mvcMembershipService = null; //see above, dependencies were a ball-ache so went for simple membership
      //var container = (IAccountContainer)HttpContext.Current.Application["container"];
      //this.mvcMembershipService = container.ResolveMembershipService();
    }
예제 #4
0
        public override void Initialize(string name, NameValueCollection config)
        {
            if (config == null)
            {
                throw new ArgumentException("config");
            }
            if (string.IsNullOrEmpty(name))
            {
                name = "MVCRoleProvider";
            }
            if (string.IsNullOrEmpty(config["description"]))
            {
                config.Remove("description");
                config.Add("description", "Authentication Role Provider");
            }
            base.Initialize(name, config);

            //Dependency Injection in .NET, Mark Seemann, page 228
            this.mvcMembershipService = null; //see above, dependencies were a ball-ache so went for simple membership
            //var container = (IAccountContainer)HttpContext.Current.Application["container"];
            //this.mvcMembershipService = container.ResolveMembershipService();
        }