public LinksController( IDatabaseAccess _database, ICacheAccess _cache, IPasswordHashingService _hasher) { database = _database; cache = _cache; hasher = _hasher; }
public RedirectionController( IConfiguration config, IHashingService _fastHasher, IPasswordHashingService _passwordHasher, IDatabaseAccess _database, ICacheAccess _cache) { fastHasher = _fastHasher; passwordHasher = _passwordHasher; database = _database; cache = _cache; var cacheDurationStr = config.GetValue(Constants.ConfigKeyCacheDurationsLinks, "30.00:00:00"); cacheDuration = TimeSpan.Parse(cacheDurationStr); routeRoot = config.GetValue <string>(Constants.ConfigKeyRoutingRoot); routeNotFound = config.GetValue <string>(Constants.ConfigKeyRoutingNotFound); routePassword = config.GetValue <string>(Constants.ConfigKeyRoutingPassword); }