protected ServiceHost StartService <TService>() { var container = new ServiceContainer(); container.EnableWcf(); var serviceHost = new LightInjectServiceHostFactory().CreateServiceHost <TService>("http://localhost:6000/" + typeof(TService).FullName + ".svc"); serviceHost.Open(); return(serviceHost); }
private ServiceHost StartService <TService>() { var container = new ServiceContainer(); container.EnableWcf(); var serviceHost = new LightInjectServiceHostFactory().CreateServiceHost <TService>("http://localhost:6000"); serviceHost.Open(); return(serviceHost); }