Esempio n. 1
0
 public PythonPlatform(
     IOptions <PythonScriptGeneratorOptions> pythonScriptGeneratorOptions,
     IPythonVersionProvider pythonVersionProvider,
     IEnvironment environment,
     ILogger <PythonPlatform> logger,
     PythonLanguageDetector detector)
 {
     _pythonVersionProvider = pythonVersionProvider;
     _environment           = environment;
     _logger   = logger;
     _detector = detector;
 }
Esempio n. 2
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="environment">The environment of Python platform.</param>
 /// <param name="logger">The logger of Python platform.</param>
 /// <param name="detector">The detector of Python platform.</param>
 public PythonPlatform(
     IOptions <BuildScriptGeneratorOptions> commonOptions,
     IPythonVersionProvider pythonVersionProvider,
     IEnvironment environment,
     ILogger <PythonPlatform> logger,
     PythonLanguageDetector detector,
     PythonPlatformInstaller platformInstaller)
 {
     _commonOptions         = commonOptions.Value;
     _pythonVersionProvider = pythonVersionProvider;
     _environment           = environment;
     _logger            = logger;
     _detector          = detector;
     _platformInstaller = platformInstaller;
 }