RoutingSlip CreateFaultedRoutingSlip(string activityName, Uri hostAddress, Exception exception)
        {
            var builder = new RoutingSlipBuilder(_routingSlip.TrackingNumber, _routingSlip.Itinerary,
                _routingSlip.ActivityLogs, _routingSlip.Variables, _routingSlip.ActivityExceptions);
            builder.AddActivityException(activityName, hostAddress, _activityTrackingNumber, _timestamp, exception);

            return builder.Build();
        }
예제 #2
0
        RoutingSlip CreateFaultedRoutingSlip(string activityName, Uri hostAddress, Exception exception)
        {
            var builder = new RoutingSlipBuilder(_routingSlip.TrackingNumber, _routingSlip.Itinerary,
                                                 _routingSlip.ActivityLogs, _routingSlip.Variables, _routingSlip.ActivityExceptions);

            builder.AddActivityException(activityName, hostAddress, _activityTrackingNumber, _timestamp, exception);

            return(builder.Build());
        }
 protected virtual void Build(RoutingSlipBuilder builder)
 {
     builder.AddActivityException(_activityException);
 }