示例#1
0
        public void SendMessage(EmailMessage pMessage)
        {
            PublisherServiceClient lClient = new PublisherServiceClient();
            EmailMessageItem       lItem   = new EmailMessageItem()
            {
                Date        = DateTime.Now,
                Message     = pMessage.Message,
                ToAddresses = pMessage.ToAddress
            };
            EmailMessageItemToSendEmailMessage lVisitor = new EmailMessageItemToSendEmailMessage();

            lVisitor.Visit(lItem);
            lClient.Publish(lVisitor.Result);
        }
示例#2
0
        public void SendMessage(EmailMessage pMessage)
        {
//            ExternalServiceFactory.Instance.EmailService.SendEmail
//                (
//                    new global::EmailService.MessageTypes.EmailMessage()
//                    {
//                        Message = pMessage.Message,
//                        ToAddresses = pMessage.ToAddress,
//                        Date = DateTime.Now
//                    }
//                );

            PublisherServiceClient lClient = new PublisherServiceClient();
            EmailMessageItem       lItem   = new EmailMessageItem()
            {
                Date        = DateTime.Now,
                Message     = pMessage.Message,
                ToAddresses = pMessage.ToAddress
            };
            EmailMessageItemToSendEmailMessage lVisitor = new EmailMessageItemToSendEmailMessage();

            lVisitor.Visit(lItem);
            lClient.Publish(lVisitor.Result);
        }