示例#1
0
        public void Send(AcmeMessage message)
        {
            var outboundMessage = new XmlOutboundMessage();

            message.WriteTo(outboundMessage);
            outboundMessage.SendVia(_outputSocket);
        }
        public void Send(AcmeMessage message)
        {
            var outboundMessage = _outboundMessageFactory.CreateOutboundMessage();

            message.WriteTo(outboundMessage);
            outboundMessage.SendVia(_outputSocket);
        }
示例#3
0
        public void Send(AcmeMessage message)
        {
            var outboundMessage = ApplicationRoot.Context.Resolve <IOutboundMessage>();

            message.WriteTo(outboundMessage);
            outboundMessage.SendVia(_outputOutputSocket);
        }
 public void Save(AcmeMessage message)
 {
     message.WriteTo(_sqlDataDestination);
 }