コード例 #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
ファイル: MVCRoleProvider.cs プロジェクト: Double222/Samurai
    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();
        }