Пример #1
0
 public FacebookController(GiveOrTakeContext dbContext,
                           IOptions <FacebookOptions> facebookOptions,
                           LoginHelper loginHelper)
 {
     this.facebookOptions = facebookOptions.Value;
     this.loginHelper     = loginHelper;
     this.dbContext       = dbContext;
 }
Пример #2
0
 public RegisterController(GiveOrTakeContext dbContext,
                           IOptions <RootUserOptions> rootUserOptions,
                           PasswordHasher <User> passwordHasher)
 {
     this.dbContext       = dbContext;
     this.passwordHasher  = passwordHasher;
     this.rootUserOptions = rootUserOptions.Value;
 }
Пример #3
0
 public LoginHelper(IOptions <JwtIssuerOptions> jwtOptions,
                    ILoggerFactory loggerFactory,
                    GiveOrTakeContext dbContext,
                    PasswordHasher <User> passwordHasher)
 {
     this.jwtOptions    = jwtOptions.Value;
     logger             = loggerFactory.CreateLogger <LoginHelper>();
     serializerSettings = new JsonSerializerSettings {
         Formatting = Formatting.Indented
     };
     this.dbContext      = dbContext;
     this.passwordHasher = passwordHasher;
 }
Пример #4
0
 public DeviceController(GiveOrTakeContext dbContext)
 {
     this.dbContext = dbContext;
 }
Пример #5
0
 public ProfileController(GiveOrTakeContext dbContext)
 {
     this.dbContext = dbContext;
 }
Пример #6
0
 public RootController(GiveOrTakeContext dbContext,
                       PasswordHasher <User> passwordHasher)
 {
     this.dbContext      = dbContext;
     this.passwordHasher = passwordHasher;
 }
Пример #7
0
 public UserController(GiveOrTakeContext dbContext)
 {
     this.dbContext = dbContext;
 }