Example #1
0
 public HugoPlatform(
     IOptions <BuildScriptGeneratorOptions> commonOptions,
     IOptions <HugoScriptGeneratorOptions> hugoScriptGeneratorOptions,
     ILogger <HugoPlatform> logger,
     HugoPlatformInstaller platformInstaller,
     IHugoPlatformDetector detector)
 {
     this.logger                     = logger;
     this.platformInstaller          = platformInstaller;
     this.commonOptions              = commonOptions.Value;
     this.hugoScriptGeneratorOptions = hugoScriptGeneratorOptions.Value;
     this.detector                   = detector;
 }
Example #2
0
 public HugoPlatform(
     IOptions <BuildScriptGeneratorOptions> commonOptions,
     IOptions <HugoScriptGeneratorOptions> hugoScriptGeneratorOptions,
     ILogger <HugoPlatform> logger,
     HugoPlatformInstaller platformInstaller,
     HugoPlatformDetector detector)
 {
     _logger                     = logger;
     _platformInstaller          = platformInstaller;
     _commonOptions              = commonOptions.Value;
     _hugoScriptGeneratorOptions = hugoScriptGeneratorOptions.Value;
     _detector                   = detector;
 }