Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PythonPlatform"/> class.
 /// </summary>
 /// <param name="pythonScriptGeneratorOptions">The options of pythonScriptGenerator.</param>
 /// <param name="pythonVersionProvider">The Python version provider.</param>
 /// <param name="logger">The logger of Python platform.</param>
 /// <param name="detector">The detector of Python platform.</param>
 public PythonPlatform(
     IOptions <BuildScriptGeneratorOptions> commonOptions,
     IOptions <PythonScriptGeneratorOptions> pythonScriptGeneratorOptions,
     IPythonVersionProvider pythonVersionProvider,
     ILogger <PythonPlatform> logger,
     PythonPlatformDetector detector,
     PythonPlatformInstaller platformInstaller)
 {
     _commonOptions = commonOptions.Value;
     _pythonScriptGeneratorOptions = pythonScriptGeneratorOptions.Value;
     _pythonVersionProvider        = pythonVersionProvider;
     _logger            = logger;
     _detector          = detector;
     _platformInstaller = platformInstaller;
 }