コード例 #1
0
 public bool IsSatisfiedBy(IEdiMessage message)
 {
     return message.GetType() == typeof(OrderHasBeenShippedMessage);
 }
コード例 #2
0
 public bool CanProcess(IEdiMessage msg)
 {
     return(msg.GetType() == typeof(OrderHasBeenShippedMessage) && msg.BusinessPartnerCode == BusinessPartner.Initech.Code);
 }
コード例 #3
0
 public bool CanPublish(IEdiMessage msg)
 {
     return msg.GetType() == typeof(OrderChangeRequestReceivedMessage);
 }
コード例 #4
0
 public bool CanPublish(IEdiMessage msg)
 {
     return(msg.GetType() == typeof(OrderChangeRequestReceivedMessage));
 }
コード例 #5
0
 public new bool CanProcess(IEdiMessage msg)
 {
     return(msg.GetType() == typeof(OrderIsBackorderedMessage) && msg.BusinessPartnerCode == BusinessPartner.Initech.Code);
 }
コード例 #6
0
        public static void Publish(this IEdiMessage obj)
        {
            var publisher = obj.Publisher();

            if (publisher == null)
            {
                throw new InvalidOperationException(string.Format("No publisher found for message type {0}", obj.GetType().Name));
            }
            publisher.PublishMessage(obj);
        }
コード例 #7
0
 public bool CanPublish(IEdiMessage msg)
 {
     return msg.GetType() == typeof(OrderHasBeenShippedMessage);
 }
コード例 #8
0
 public bool CanProcess(IEdiMessage msg)
 {
     return(msg.GetType() == typeof(OrderRequestReceivedMessage) && msg.BusinessPartnerNumber == BusinessPartner.FedEx.Number);
 }