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(); }
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); }