public LocatorServiceHostFactory(
			ServiceHostConfigurator configurator,
			ILocator locator,
			string[] allowedSchemes)
		{
			this.configurator = configurator;
			this.locator = locator;
			this.allowedSchemes = allowedSchemes;
		}
Пример #2
0
		public ICollection<RouteBase> Bindings(params Binding[] bindings)
		{
			var hostConfigurator = new ServiceHostConfigurator(contractType, serviceBehaviors, bindings);

			var hostFactory = new LocatorServiceHostFactory(hostConfigurator, locator, allowedSchemes);

			routes.Add(new ServiceRoute(serviceType.Name, hostFactory, serviceType));

			return routes;
		}