Beispiel #1
0
        public async Task WhenPipelineRun()
        {
            _helper = new ParentHelper()
                      .WithBasicMetadata()
                      .WithTenantAndSubscriptionIds()
                      .WithSPNInDatabase("FrameworkFactory")
                      .WithEmptyExecutionTables()
                      .WithoutPrecursorObject() //done to ensure 2min waits are used, not example precursor waits
                      .With2MinWaitsOnWorkers() //to ensure the cancel call has enough time
                      .WithCancelledWorkersBlock(true)
                      .WithFailureHandling("Simple");

            var runOrchestrator = _helper.RunPipeline();
            var cancelWorker    = _helper.CancelIntentionalErrorWorkerPipeline(); //specific worker

            await Task.WhenAll(runOrchestrator, cancelWorker);
        }