コード例 #1
0
        public Task ReceiveExecutionStartingAsync(PipelineComponentExecutionStartingInfo executionInfo)
        {
            Console.WriteLine(
                $"Component '{executionInfo.PipelineComponentName}' execution starting at {executionInfo.TimeStamp.ToShortTimeString()}");

            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 Task ReceiveExecutionStartingAsync(PipelineComponentExecutionStartingInfo executionInfo)
 {
     throw new System.NotImplementedException();
 }