Exemple #1
0
 public NodePlatform(
     IOptions <NodeScriptGeneratorOptions> nodeScriptGeneratorOptions,
     INodeVersionProvider nodeVersionProvider,
     ILogger <NodePlatform> logger,
     NodeLanguageDetector detector)
 {
     _nodeScriptGeneratorOptions = nodeScriptGeneratorOptions.Value;
     _nodeVersionProvider        = nodeVersionProvider;
     _logger   = logger;
     _detector = detector;
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NodePlatform"/> class.
 /// </summary>
 /// <param name="nodeScriptGeneratorOptions">The options for nodeScriptGenerator.</param>
 /// <param name="nodeVersionProvider">The Node.js version provider.</param>
 /// <param name="logger">The logger of Node.js platform.</param>
 /// <param name="detector">The detector of Node.js platform.</param>
 /// <param name="environment">The environment of Node.js platform.</param>
 public NodePlatform(
     IOptions <BuildScriptGeneratorOptions> commonOptions,
     IOptions <NodeScriptGeneratorOptions> nodeScriptGeneratorOptions,
     INodeVersionProvider nodeVersionProvider,
     ILogger <NodePlatform> logger,
     NodeLanguageDetector detector,
     IEnvironment environment,
     NodePlatformInstaller nodePlatformInstaller)
 {
     _commonOptions = commonOptions.Value;
     _nodeScriptGeneratorOptions = nodeScriptGeneratorOptions.Value;
     _nodeVersionProvider        = nodeVersionProvider;
     _logger            = logger;
     _detector          = detector;
     _environment       = environment;
     _platformInstaller = nodePlatformInstaller;
 }