コード例 #1
0
        public MembershipService(
            DataContext dataContext,
            Func<HttpContextBase> lazyHttpContext)
        {
            this.dataContext = dataContext;
            LazyHttpContext = lazyHttpContext;

            var identityContext = new AppIdentityStoreContext(dataContext);
            IdentityManager = new AppIdentityStoreManager(identityContext);
            AuthenticationManager = new AppIdentityAuthenticationManager(
                IdentityManager);
        }
コード例 #2
0
        public MembershipService(
            DataContext dataContext,
            Func <HttpContextBase> lazyHttpContext)
        {
            this.dataContext = dataContext;
            LazyHttpContext  = lazyHttpContext;

            var identityContext = new AppIdentityStoreContext(dataContext);

            IdentityManager       = new AppIdentityStoreManager(identityContext);
            AuthenticationManager = new AppIdentityAuthenticationManager(
                IdentityManager);
        }