コード例 #1
0
ファイル: TFBuildProvider.cs プロジェクト: jnm2/cake
 /// <summary>
 /// Initializes a new instance of the <see cref="TFBuildProvider"/> class.
 /// </summary>
 /// <param name="environment">The environment.</param>
 public TFBuildProvider(ICakeEnvironment environment)
 {
     if (environment == null)
     {
         throw new ArgumentNullException(nameof(environment));
     }
     _environment = environment;
     Environment  = new TFBuildEnvironmentInfo(environment);
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TFBuildProvider"/> class.
 /// </summary>
 /// <param name="environment">The environment.</param>
 /// <param name="log">The log.</param>
 public TFBuildProvider(ICakeEnvironment environment, ICakeLog log)
 {
     if (environment == null)
     {
         throw new ArgumentNullException(nameof(environment));
     }
     if (log == null)
     {
         throw new ArgumentNullException(nameof(log));
     }
     _environment = environment;
     Environment  = new TFBuildEnvironmentInfo(environment);
     Commands     = new TFBuildCommands(environment, log);
 }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TFBuildProvider"/> class.
 /// </summary>
 /// <param name="environment">The environment.</param>
 /// <param name="writer">The build system service message writer.</param>
 public TFBuildProvider(ICakeEnvironment environment, IBuildSystemServiceMessageWriter writer)
 {
     _environment = environment ?? throw new ArgumentNullException(nameof(environment));
     Environment  = new TFBuildEnvironmentInfo(environment);
     Commands     = new TFBuildCommands(environment, writer);
 }