public UpdateRegistryService(ILogger logger, Model.ApplicationPath appPath) { _logger = logger; _appPath = appPath; }
public Logger(Model.Configuration configuration, Model.ApplicationPath appPath) { _configuration = configuration ?? throw new ArgumentNullException(nameof(configuration)); _appPath = appPath ?? throw new ArgumentNullException(nameof(appPath)); _logFilePath = new Lazy <string>(() => _appPath.Expand(_configuration.LogFilePath)); }