コード例 #1
0
        public Task ReceiveExecutionCompletedAsync(PipelineComponentExecutionCompletedInfo executionInfo)
        {
            Console.WriteLine(
                $"Component '{executionInfo.PipelineComponentName}' execution completed at {executionInfo.TimeStamp.ToShortTimeString()}.  Duration: {executionInfo.ExecutionTime.TotalMilliseconds}ms");

            return(Task.CompletedTask);
        }
コード例 #2
0
        public void Ctor_SetsPropertiesFromStartingInfo()
        {
            // Arrange
            var startingInfo  = new PipelineComponentExecutionStartingInfo("FooComponent", new TestPayload());
            var executionTime = TimeSpan.FromMilliseconds(100);
            var exception     = new Exception();

            // Act
            var result = new PipelineComponentExecutionCompletedInfo(startingInfo, executionTime, exception);

            // Assert
            result.Should().NotBeNull();
            result.PipelineComponentName.Should().Be(startingInfo.PipelineComponentName);
            result.Payload.Should().Be(startingInfo.Payload);
            result.TimeStamp.Should().Be(startingInfo.TimeStamp);
            result.ExecutionTime.Should().Be(executionTime);
            result.Exception.Should().Be(exception);
        }
コード例 #3
0
 public void ReceiveExecutionCompleted(PipelineComponentExecutionCompletedInfo executionInfo)
 {
     throw new System.NotImplementedException();
 }