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; }