Пример #1
0
 public UpdateRegistryService(ILogger logger, Model.ApplicationPath appPath)
 {
     _logger  = logger;
     _appPath = appPath;
 }
Пример #2
0
 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));
 }