/// <summary>
        /// Initializes a new instance of the <see cref="ContinuaCIProvider"/> class.
        /// </summary>
        /// <param name="environment">The cake environment.</param>
        public ContinuaCIProvider(ICakeEnvironment environment)
        {
            if (environment == null)
            {
                throw new ArgumentNullException("environment");
            }

            _environment     = environment;
            _environmentInfo = new ContinuaCIEnvironmentInfo(environment);
        }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ContinuaCIProvider"/> class.
 /// </summary>
 /// <param name="environment">The cake environment.</param>
 /// <param name="writer">The build system service message writer.</param>
 public ContinuaCIProvider(ICakeEnvironment environment, IBuildSystemServiceMessageWriter writer)
 {
     _environment = environment ?? throw new ArgumentNullException(nameof(environment));
     _writer      = writer ?? throw new ArgumentNullException(nameof(writer));
     Environment  = new ContinuaCIEnvironmentInfo(environment);
 }