public RoutingSlipActivityFaultedDocument(RoutingSlipActivityFaulted message) : base(message.Timestamp) { ActivityName = message.ActivityName; ActivityTrackingNumber = message.ActivityTrackingNumber; if (message.ExceptionInfo != null) ExceptionInfo = new ExceptionInfoDocument(message.ExceptionInfo); }
public RoutingSlipActivityFaultedDocument(RoutingSlipActivityFaulted message) : base(message.Timestamp, message.Duration, message.Host) { ActivityName = message.ActivityName; ExecutionId = message.ExecutionId; if (message.ExceptionInfo != null) ExceptionInfo = new ExceptionInfoDocument(message.ExceptionInfo); }
public RoutingSlipActivityFaultedDocument(RoutingSlipActivityFaulted message) : base(message.Timestamp) { ActivityName = message.ActivityName; ActivityTrackingNumber = message.ActivityTrackingNumber; if (message.ExceptionInfo != null) { ExceptionInfo = new ExceptionInfoDocument(message.ExceptionInfo); } }
public RoutingSlipActivityFaultedDocument(RoutingSlipActivityFaulted message) : base(message.Timestamp, message.Duration, message.Host) { ActivityName = message.ActivityName; ExecutionId = message.ExecutionId; if (message.ExceptionInfo != null) { ExceptionInfo = new ExceptionInfoDocument(message.ExceptionInfo); } }
public static T GetVariable <T>(this RoutingSlipActivityFaulted source, string key) { if (source == null) { throw new ArgumentNullException(nameof(source)); } if (string.IsNullOrEmpty(key)) { throw new ArgumentException("The key must not be empty", nameof(key)); } return(DeserializeVariable <T>(key, source.Variables)); }
public static T GetArgument <T>(this RoutingSlipActivityFaulted source, string key) { if (source == null) { throw new ArgumentNullException(nameof(source)); } if (string.IsNullOrEmpty(key)) { throw new ArgumentException("The key must not be empty", nameof(key)); } return(ObjectTypeDeserializer.Deserialize <T>(source.Arguments, key)); }