public bool IsSatisfiedBy(IEdiMessage message) { return message.GetType() == typeof(OrderHasBeenShippedMessage); }
public bool CanProcess(IEdiMessage msg) { return(msg.GetType() == typeof(OrderHasBeenShippedMessage) && msg.BusinessPartnerCode == BusinessPartner.Initech.Code); }
public bool CanPublish(IEdiMessage msg) { return msg.GetType() == typeof(OrderChangeRequestReceivedMessage); }
public bool CanPublish(IEdiMessage msg) { return(msg.GetType() == typeof(OrderChangeRequestReceivedMessage)); }
public new bool CanProcess(IEdiMessage msg) { return(msg.GetType() == typeof(OrderIsBackorderedMessage) && msg.BusinessPartnerCode == BusinessPartner.Initech.Code); }
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); }
public bool CanPublish(IEdiMessage msg) { return msg.GetType() == typeof(OrderHasBeenShippedMessage); }
public bool CanProcess(IEdiMessage msg) { return(msg.GetType() == typeof(OrderRequestReceivedMessage) && msg.BusinessPartnerNumber == BusinessPartner.FedEx.Number); }