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); } }
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); } }
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); } }
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 }) ); } }
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 }) ); } }
public void PublishToSubscriber(Common.Model.Message pMessage) { System.Diagnostics.Debug.WriteLine("Email ------------ Receive"); }
public void PublishToSubscriber(Common.Model.Message pMessage) { TransferProvider.Transfer(pMessage); }