Esempio n. 1
0
 public UserService(IOptions <UserConfig> config, ILogger <UserService> logger, IDbOperations <User> userDbOperations, IPasswordHashService passwordHashService)
 {
     _userDbOperations    = userDbOperations;
     _passwordHashService = passwordHashService;
     _userDbOperations.InitializeDb(config.Value.ConnectionString, config.Value.DatabaseName, config.Value.CollectionName);
     _logger = logger;
 }
Esempio n. 2
0
 public MongoDbActionService(IOptions <ToDoConfig> config, ILogger <MongoDbActionService> logger, IDbOperations <ToDoEntity> userDbOperations)
 {
     _userDbOperations = userDbOperations;
     _userDbOperations.InitializeDb(config.Value.ConnectionString, config.Value.DatabaseName, config.Value.CollectionName);
     _logger = logger;
 }