/// <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); }
/// <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); }