public UploadManager(IOptions <NanokaOptions> options, UploadTaskCollection tasks, IUserClaims claims, ILoggerFactory loggerFactory) { _options = options.Value; _tasks = tasks; _claims = claims; _loggerFactory = loggerFactory; }
public PasswordHashHelper(IOptions <NanokaOptions> options, ILogger <PasswordHashHelper> logger) { _options = options.Value; _logger = logger; switch (_options.PasswordHashVersion) { // 0 simply implements Microsoft-recommend hashing method // https://docs.microsoft.com/en-us/aspnet/core/security/data-protection/consumer-apis/password-hashing?view=aspnetcore-2.2 case 0: break; default: throw new NotSupportedException($"{_options.PasswordHashVersion} is not a invalid hash version."); } }
public ImageProcessor(IOptions <NanokaOptions> options) { _options = options.Value; }
public UploadAutoExpiryJob(IOptions <NanokaOptions> options, UploadTaskCollection tasks, ILogger <UploadAutoExpiryJob> logger) { _options = options.Value; _tasks = tasks; _logger = logger; }
public TokenManager(IOptions <NanokaOptions> options, IDistributedCache cache, IUserClaims claims) { _options = options.Value; _cache = cache; _claims = claims; }