public SimpleMessagingGateway(IInboundMessageMapper inboundMapper, IOutboundMessageMapper outboundMapper)
 {
     AssertUtils.ArgumentNotNull(inboundMapper, "InboundMessageMapper must not be null");
     AssertUtils.ArgumentNotNull(outboundMapper, "OutboundMessageMapper must not be null");
     _inboundMapper = inboundMapper;
     _outboundMapper = outboundMapper;
 }
 public SimpleMessagingGateway(IInboundMessageMapper inboundMapper, IOutboundMessageMapper outboundMapper)
 {
     AssertUtils.ArgumentNotNull(inboundMapper, "InboundMessageMapper must not be null");
     AssertUtils.ArgumentNotNull(outboundMapper, "OutboundMessageMapper must not be null");
     _inboundMapper  = inboundMapper;
     _outboundMapper = outboundMapper;
 }
        public SimpleMessagingGateway()
        {
            SimpleMessageMapper mapper = new SimpleMessageMapper();

            _inboundMapper  = mapper;
            _outboundMapper = mapper;
        }
Beispiel #4
0
        private object ResolveParameters(MethodInfo method, IMessage message)
        {
            IOutboundMessageMapper mapper = messageMappers.ContainsKey(method) ? messageMappers[method] : null;

            if (mapper == null)
            {
                mapper = new MethodParameterMessageMapper(method);
                messageMappers.Add(method, mapper);
            }
            // TODO check
            return(mapper.FromMessage(message));
        }
 public SimpleMessagingGateway()
 {
     SimpleMessageMapper mapper = new SimpleMessageMapper();
     _inboundMapper = mapper;
     _outboundMapper = mapper;
 }