public BuildCommand(
     [NotNull] ILogger logger,
     [NotNull] IMessageLogger messageLogger,
     [NotNull] CancellationTokenSource cancellationTokenSource,
     [NotNull] IFileSystem fileSystem,
     [NotNull] IPathService pathService,
     [NotNull] IBuildOptions options,
     [NotNull] IConfigurationExplorer configurationExplorer,
     [NotNull] IFactory <IGraph <IArtifact, Dependency>, IEnumerable <Template> > buildGraphFactory,
     [NotNull] IFactory <IEnumerable <IGraph <IArtifact, Dependency> >, IGraph <IArtifact, Dependency> > buildGraphsFactory,
     [NotNull] IFactory <string, IGraph <IArtifact, Dependency> > graphNameFactory,
     [NotNull] IBuildPathProvider buildPathProvider,
     [NotNull] IContextFactory contextFactory,
     [NotNull] IStreamService streamService,
     [NotNull] IDockerClient dockerClient)
 {
     _logger                  = logger ?? throw new ArgumentNullException(nameof(logger));
     _messageLogger           = messageLogger ?? throw new ArgumentNullException(nameof(messageLogger));
     _cancellationTokenSource = cancellationTokenSource ?? throw new ArgumentNullException(nameof(cancellationTokenSource));
     _fileSystem              = fileSystem ?? throw new ArgumentNullException(nameof(fileSystem));
     _pathService             = pathService ?? throw new ArgumentNullException(nameof(pathService));
     _options                 = options ?? throw new ArgumentNullException(nameof(options));
     _configurationExplorer   = configurationExplorer ?? throw new ArgumentNullException(nameof(configurationExplorer));
     _buildGraphFactory       = buildGraphFactory ?? throw new ArgumentNullException(nameof(buildGraphFactory));
     _buildGraphsFactory      = buildGraphsFactory ?? throw new ArgumentNullException(nameof(buildGraphsFactory));
     _graphNameFactory        = graphNameFactory ?? throw new ArgumentNullException(nameof(graphNameFactory));
     _buildPathProvider       = buildPathProvider ?? throw new ArgumentNullException(nameof(buildPathProvider));
     _contextFactory          = contextFactory ?? throw new ArgumentNullException(nameof(contextFactory));
     _streamService           = streamService ?? throw new ArgumentNullException(nameof(streamService));
     _dockerClient            = dockerClient ?? throw new ArgumentNullException(nameof(dockerClient));
 }
 public ReadmeGenerator(
     [NotNull] IGenerateOptions options,
     [NotNull] IPathService pathService,
     [NotNull] IBuildPathProvider buildPathProvider)
 {
     _options           = options ?? throw new ArgumentNullException(nameof(options));
     _pathService       = pathService ?? throw new ArgumentNullException(nameof(pathService));
     _buildPathProvider = buildPathProvider ?? throw new ArgumentNullException(nameof(buildPathProvider));
 }
Beispiel #3
0
 public TeamCityKotlinSettingsGenerator(
     [NotNull] IGenerateOptions options,
     [NotNull] IFactory <IEnumerable <IGraph <IArtifact, Dependency> >, IGraph <IArtifact, Dependency> > buildGraphsFactory,
     [NotNull] IPathService pathService,
     [NotNull] IBuildPathProvider buildPathProvider,
     [NotNull] IFactory <NodesDescription, IEnumerable <INode <IArtifact> > > nodesDescriptionFactory)
 {
     _options                  = options ?? throw new ArgumentNullException(nameof(options));
     _buildGraphsFactory       = buildGraphsFactory ?? throw new ArgumentNullException(nameof(buildGraphsFactory));
     _pathService              = pathService ?? throw new ArgumentNullException(nameof(pathService));
     _buildPathProvider        = buildPathProvider ?? throw new ArgumentNullException(nameof(buildPathProvider));
     _nodesDescriptionsFactory = nodesDescriptionFactory ?? throw new ArgumentNullException(nameof(nodesDescriptionFactory));
 }