/// <summary> /// Initializes a new instance of the <see cref="UnixFileSystemProvider"/> class. /// </summary> /// <param name="options">The file system options.</param> /// <param name="accountDirectoryQuery">Interface to query account directories.</param> /// <param name="logger">The logger for this file system.</param> public UnixFileSystemProvider( [NotNull] IOptions <UnixFileSystemOptions> options, [NotNull] IAccountDirectoryQuery accountDirectoryQuery, [CanBeNull] ILogger <UnixFileSystemProvider> logger = null) { _accountDirectoryQuery = accountDirectoryQuery; _logger = logger; _options = options.Value; }
/// <summary> /// Initializes a new instance of the <see cref="UnixFileSystemProvider"/> class. /// </summary> /// <param name="options">The file system options.</param> /// <param name="accountDirectoryQuery">Interface to query account directories.</param> /// <param name="logger">The logger for this file system.</param> public UnixFileSystemProvider( IOptions <UnixFileSystemOptions> options, IAccountDirectoryQuery accountDirectoryQuery, ILogger <UnixFileSystemProvider>?logger = null) { _accountDirectoryQuery = accountDirectoryQuery; _logger = logger; _options = options.Value; }
/// <summary> /// Initializes a new instance of the <see cref="UnixFileSystemProvider"/> class. /// </summary> /// <param name="options">The file system options.</param> /// <param name="accountDirectoryQuery">Interface to query account directories.</param> /// <param name="loggerFactory">Factory to create loggers.</param> public UnixFileSystemProvider( IOptions <UnixFileSystemOptions> options, IAccountDirectoryQuery accountDirectoryQuery, ILoggerFactory?loggerFactory) { _accountDirectoryQuery = accountDirectoryQuery; _loggerFactory = loggerFactory; _logger = loggerFactory?.CreateLogger <UnixFileSystemProvider>(); _options = options.Value; }