public RoutingSlipCompensationFailedDocument(RoutingSlipCompensationFailed message)
     : base(message.Timestamp, message.Duration)
 {
     if (message.ExceptionInfo != null)
     {
         ExceptionInfo = new ExceptionInfoDocument(message.ExceptionInfo);
     }
 }
Example #2
0
        public static T GetVariable <T>(this RoutingSlipCompensationFailed 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 RoutingSlipCompensationFailedDocument(RoutingSlipCompensationFailed message)
     : base(message.Timestamp, message.Duration)
 {
     if (message.ExceptionInfo != null)
         ExceptionInfo = new ExceptionInfoDocument(message.ExceptionInfo);
 }