Ejemplo n.º 1
0
 public void PublishToSubscriber(Common.Model.Message pMessage)
 {
     if (pMessage is Common.Model.TransferMessage)
     {
         TransferMessage lMessage = pMessage as TransferMessage;
         TransferProvider.Transfer(lMessage.pAmount, lMessage.pFromAcctNumber, lMessage.pToAcctNumber, lMessage.pExternalOrderNumber);
     }
 }
Ejemplo n.º 2
0
        public void PublishToSubscriber(Common.Model.Message pMessage)
        {
            DeliveryService dService = new DeliveryService();

            if (pMessage is DeliveryInfoMessage)
            {
                DeliveryInfoMessage lMessage = pMessage as DeliveryInfoMessage;
                DeliveryInfoMessageToDeliveryInfo lVisitor = new DeliveryInfoMessageToDeliveryInfo();
                lMessage.Accept(lVisitor);
                dService.SubmitDelivery(lVisitor.Result);
            }
        }
Ejemplo n.º 3
0
        public void PublishToSubscriber(Common.Model.Message pMessage)
        {
            EmailService eService = new EmailService();

            if (pMessage is SendEmailMessage)
            {
                SendEmailMessage lMessage = pMessage as SendEmailMessage;
                SendEmailMessageToEmailMessage lVisitor = new SendEmailMessageToEmailMessage();
                lMessage.Accept(lVisitor);

                eService.SendEmail(lVisitor.Result);
            }
        }
Ejemplo n.º 4
0
 public void PublishToSubscriber(Common.Model.Message pMessage)
 {
     if (pMessage is Common.Model.SendEmailMessage)
     {
         SendEmailMessage lMessage = pMessage as SendEmailMessage;
         EmailProvider.SendEmail(
             MessageTypeConverter.Instance.Convert <
                 global::EmailService.MessageTypes.EmailMessage,
                 global::EmailService.Business.Entities.EmailMessage>(new MessageTypes.EmailMessage()
         {
             Message     = lMessage.Message,
             ToAddresses = lMessage.ToAddresses,
             Date        = DateTime.Now
         })
             );
     }
 }
Ejemplo n.º 5
0
 public void PublishToSubscriber(Common.Model.Message pMessage)
 {
     if (pMessage is SubmitDeliveryMessage)
     {
         SubmitDeliveryMessage lMessage = pMessage as SubmitDeliveryMessage;
         DeliveryProvider.SubmitDelivery(
             MessageTypeConverter.Instance.Convert <DeliveryCo.MessageTypes.DeliveryInfo,
                                                    DeliveryCo.Business.Entities.DeliveryInfo>(new MessageTypes.DeliveryInfo()
         {
             OrderNumber                 = lMessage.OrderNumber,
             SourceAddress               = lMessage.SourceAddress,
             DestinationAddress          = lMessage.DestinationAddress,
             DeliveryNotificationAddress = lMessage.DeliveryNotificationAddress
         })
             );
     }
 }
Ejemplo n.º 6
0
 public void PublishToSubscriber(Common.Model.Message pMessage)
 {
     System.Diagnostics.Debug.WriteLine("Email ------------ Receive");
 }
Ejemplo n.º 7
0
 public void PublishToSubscriber(Common.Model.Message pMessage)
 {
     TransferProvider.Transfer(pMessage);
 }