示例#1
0
 public ApplicationUserManager(IAppUserStore <ApplicationUser> store) : base(store)
 {
 }
 public AppUserManager(IAppUserStore store)
     : base(store)
 {
 }
示例#3
0
        public AppUserManager(IAppConfiguration configuration, ISEContext context, IEncryption encryption, IAppUserStore <User> userStore)
        {
            if (configuration == null)
            {
                throw new ArgumentNullException("configuration");
            }
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }
            if (encryption == null)
            {
                throw new ArgumentNullException("encryption");
            }
            if (userStore == null)
            {
                throw new ArgumentNullException("userStore");
            }

            _configuration = configuration;
            _context       = context;
            _encryption    = encryption;
            _userStore     = userStore;
        }
示例#4
0
 public ProfileService(IAppUserStore <AppUser, int> appUserStore)
 {
     this._appUserStore = appUserStore;
 }
 public AuthRepository(IAppUserStore userStore)
 {
     _userStore   = userStore;
     _userManager = new AppUserManager(_userStore); // a better method for this?
 }
 /// <summary>
 /// Initializes a new instance of AppUserManagerService
 /// </summary>
 /// <param name="store">Used to set store into UserManager</param>
 public AppUserManagerService(IAppUserStore store) : base(store)
 {
 }