static IDisposable StartWcfHost(IBusSession busSession) { WcfMapper wcfMapper = new WcfMapper(busSession, "http://localhost:8080"); wcfMapper.StartListening<EnumMessage, Status>(); wcfMapper.StartListening<ObjectMessage, ReplyMessage>(); wcfMapper.StartListening<IntMessage, int>(); return wcfMapper; }
static IDisposable StartWcfHost(IEndpointInstance endpointInstance) { WcfMapper wcfMapper = new WcfMapper(endpointInstance, "http://localhost:8080"); wcfMapper.StartListening<EnumMessage, Status>(); wcfMapper.StartListening<ObjectMessage, ReplyMessage>(); wcfMapper.StartListening<IntMessage, int>(); return wcfMapper; }
static IDisposable StartWcfHost(IEndpointInstance endpointInstance) { var wcfMapper = new WcfMapper(endpointInstance, "http://localhost:8080"); wcfMapper.StartListening <EnumMessage, Status>(); wcfMapper.StartListening <ObjectMessage, ReplyMessage>(); wcfMapper.StartListening <IntMessage, int>(); return(wcfMapper); }
static IDisposable StartWcfHost(IBus bus) { WcfMapper wcfMapper = new WcfMapper(bus, "http://localhost:8080"); wcfMapper.StartListening <EnumMessage, Status>(); wcfMapper.StartListening <ObjectMessage, ReplyMessage>(); wcfMapper.StartListening <IntMessage, int>(); return(wcfMapper); }