Пример #1
0
 public TeamCityWriterFacade(
     [NotNull] IServiceMessageProcessor processor,
     [NotNull] ITeamCityBlockWriter <ITeamCityWriter> blockWriter,
     [NotNull] ITeamCityCompilationBlockWriter <ITeamCityWriter> compilationWriter,
     [NotNull] ITeamCityTestsWriter testsWriter,
     [NotNull] ITeamCityMessageWriter messageWriter,
     [NotNull] ITeamCityArtifactsWriter artifactsWriter,
     [NotNull] ITeamCityBuildStatusWriter statusWriter,
     [NotNull] ITeamCityFlowWriter <ITeamCityWriter> flowWriter,
     [NotNull] IDisposable disposeCallback)
 {
     if (processor == null)
     {
         throw new ArgumentNullException(nameof(processor));
     }
     if (blockWriter == null)
     {
         throw new ArgumentNullException(nameof(blockWriter));
     }
     if (compilationWriter == null)
     {
         throw new ArgumentNullException(nameof(compilationWriter));
     }
     if (testsWriter == null)
     {
         throw new ArgumentNullException(nameof(testsWriter));
     }
     if (messageWriter == null)
     {
         throw new ArgumentNullException(nameof(messageWriter));
     }
     if (artifactsWriter == null)
     {
         throw new ArgumentNullException(nameof(artifactsWriter));
     }
     if (statusWriter == null)
     {
         throw new ArgumentNullException(nameof(statusWriter));
     }
     if (flowWriter == null)
     {
         throw new ArgumentNullException(nameof(flowWriter));
     }
     if (disposeCallback == null)
     {
         throw new ArgumentNullException(nameof(disposeCallback));
     }
     _processor         = processor;
     _blockWriter       = blockWriter;
     _compilationWriter = compilationWriter;
     _testsWriter       = testsWriter;
     _messageWriter     = messageWriter;
     _artifactsWriter   = artifactsWriter;
     _statusWriter      = statusWriter;
     _flowWriter        = flowWriter;
     _dispose           = disposeCallback;
 }
 private TeamCityWriterImpl([NotNull] IFlowServiceMessageProcessor processor,
                            [NotNull] TeamCityFlowWriter <ITeamCityWriter> flowWriter,
                            [NotNull] TeamCityBlockWriter <ITeamCityWriter> blockWriter,
                            [NotNull] TeamCityCompilationBlockWriter <ITeamCityWriter> compilationWriter,
                            [NotNull] TeamCityTestSuiteBlock testsWriter,
                            [NotNull] ITeamCityMessageWriter messageWriter,
                            [NotNull] ITeamCityArtifactsWriter artifactsWriter,
                            [NotNull] ITeamCityBuildStatusWriter statusWriter,
                            [NotNull] IDisposable dispose)
     : base(processor, blockWriter, compilationWriter, testsWriter, messageWriter, artifactsWriter, statusWriter, flowWriter, dispose)
 {
     myWriteCheck = new ISubWriter[] { blockWriter, compilationWriter, testsWriter, flowWriter };
 }
Пример #3
0
 private TeamCityWriterImpl(
     [NotNull] IServiceMessageProcessor processor,
     [NotNull] TeamCityFlowWriter <ITeamCityWriter> flowWriter,
     [NotNull] TeamCityBlockWriter <ITeamCityWriter> blockWriter,
     [NotNull] TeamCityCompilationBlockWriter <ITeamCityWriter> compilationWriter,
     [NotNull] TeamCityTestSuiteBlock testsWriter,
     [NotNull] ITeamCityMessageWriter messageWriter,
     [NotNull] ITeamCityArtifactsWriter artifactsWriter,
     [NotNull] ITeamCityBuildStatusWriter statusWriter,
     [NotNull] IDisposable dispose)
     : base(processor, blockWriter, compilationWriter, testsWriter, messageWriter, artifactsWriter, statusWriter, flowWriter, dispose)
 {
     if (processor == null)
     {
         throw new ArgumentNullException(nameof(processor));
     }
     if (flowWriter == null)
     {
         throw new ArgumentNullException(nameof(flowWriter));
     }
     if (blockWriter == null)
     {
         throw new ArgumentNullException(nameof(blockWriter));
     }
     if (compilationWriter == null)
     {
         throw new ArgumentNullException(nameof(compilationWriter));
     }
     if (testsWriter == null)
     {
         throw new ArgumentNullException(nameof(testsWriter));
     }
     if (messageWriter == null)
     {
         throw new ArgumentNullException(nameof(messageWriter));
     }
     if (artifactsWriter == null)
     {
         throw new ArgumentNullException(nameof(artifactsWriter));
     }
     if (statusWriter == null)
     {
         throw new ArgumentNullException(nameof(statusWriter));
     }
     if (dispose == null)
     {
         throw new ArgumentNullException(nameof(dispose));
     }
     _writeCheck = new ISubWriter[] { blockWriter, compilationWriter, testsWriter, flowWriter };
 }
 public TeamCityWriterFacade([NotNull] IServiceMessageProcessor processor,
                             [NotNull] ITeamCityBlockWriter <ITeamCityWriter> blockWriter,
                             [NotNull] ITeamCityCompilationBlockWriter <ITeamCityWriter> compilationWriter,
                             [NotNull] ITeamCityTestsWriter testsWriter,
                             [NotNull] ITeamCityMessageWriter messageWriter,
                             [NotNull] ITeamCityArtifactsWriter artifactsWriter,
                             [NotNull] ITeamCityBuildStatusWriter statusWriter,
                             [NotNull] ITeamCityFlowWriter <ITeamCityWriter> flowWriter,
                             [NotNull] IDisposable disposeCallback)
 {
     myProcessor         = processor;
     myBlockWriter       = blockWriter;
     myCompilationWriter = compilationWriter;
     myTestsWriter       = testsWriter;
     myMessageWriter     = messageWriter;
     myArtifactsWriter   = artifactsWriter;
     myStatusWriter      = statusWriter;
     myFlowWriter        = flowWriter;
     myDispose           = disposeCallback;
 }