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(); }
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(); }
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(); }