예제 #1
0
        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);
        }
예제 #2
0
        private ServiceHost StartService <TService>()
        {
            var container = new ServiceContainer();

            container.EnableWcf();

            var serviceHost = new LightInjectServiceHostFactory().CreateServiceHost <TService>("http://localhost:6000");

            serviceHost.Open();
            return(serviceHost);
        }