Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PythonPlatform"/> class.
 /// </summary>
 /// <param name="commonOptions">The <see cref="BuildScriptGeneratorOptions"/>.</param>
 /// <param name="pythonScriptGeneratorOptions">The <see cref="PythonScriptGeneratorOptions"/>.</param>
 /// <param name="versionProvider">The Python version provider.</param>
 /// <param name="logger">The logger of Python platform.</param>
 /// <param name="detector">The detector of Python platform.</param>
 /// <param name="platformInstaller">The <see cref="PythonPlatformInstaller"/>.</param>
 public PythonPlatform(
     IOptions <BuildScriptGeneratorOptions> commonOptions,
     IOptions <PythonScriptGeneratorOptions> pythonScriptGeneratorOptions,
     IPythonVersionProvider versionProvider,
     ILogger <PythonPlatform> logger,
     IPythonPlatformDetector detector,
     PythonPlatformInstaller platformInstaller)
 {
     _commonOptions = commonOptions.Value;
     _pythonScriptGeneratorOptions = pythonScriptGeneratorOptions.Value;
     _versionProvider   = versionProvider;
     _logger            = logger;
     _detector          = detector;
     _platformInstaller = platformInstaller;
 }
Beispiel #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;
 }