Exemple #1
0
 /// <summary>
 /// Helper method that cleans up all the resources
 /// </summary>
 protected virtual void Dispose(bool disposing)
 {
     if (disposing && _context != null)
     {
         _context.Dispose();
     }
     _context       = null;
     Logins         = null;
     Roles          = null;
     Secrets        = null;
     Tokens         = null;
     UserClaims     = null;
     UserManagement = null;
     Users          = null;
 }
Exemple #2
0
 /// <summary>
 /// Ctor
 /// </summary>
 public IdentityStore(IdentityContext context)
 {
     if (context == null)
     {
         throw new ArgumentNullException("context");
     }
     _context       = context;
     Logins         = new UserLoginStore <UserLogin>(_context);
     Roles          = new RoleStore <Role, UserRole>(_context);
     Secrets        = new UserSecretStore <UserSecret>(_context);
     Tokens         = new TokenStore <Token>(_context);
     UserClaims     = new UserClaimStore <UserClaim>(_context);
     UserManagement = new UserManagementStore <UserManagement>(_context);
     Users          = new UserStore <User>(_context);
 }
 /// <summary>
 /// Ctor
 /// </summary>
 public IdentityStore(IdentityContext context)
 {
     if (context == null)
     {
         throw new ArgumentNullException("context");
     }
     _context = context;
     Logins = new UserLoginStore<UserLogin>(_context);
     Roles = new RoleStore<Role, UserRole>(_context);
     Secrets = new UserSecretStore<UserSecret>(_context);
     Tokens = new TokenStore<Token>(_context);
     UserClaims = new UserClaimStore<UserClaim>(_context);
     UserManagement = new UserManagementStore<UserManagement>(_context);
     Users = new UserStore<User>(_context);
 }
 /// <summary>
 /// Helper method that cleans up all the resources
 /// </summary>
 protected virtual void Dispose(bool disposing)
 {
     if (disposing && _context != null)
     {
         _context.Dispose();
     }
     _context = null;
     Logins = null;
     Roles = null;
     Secrets = null;
     Tokens = null;
     UserClaims = null;
     UserManagement = null;
     Users = null;
 }