Beispiel #1
0
		public override void Configure(Container container)
		{
			var bootstrapper = new HostBootstrapper();
			
			EndpointHostConfig config = bootstrapper
				.Bootstrap(Routes)
				.Bootstrap(container)
				.Bootstrap(RequestFilters, ResponseFilters)
				.Bootstrap(ContentTypeFilters)
				.WithConfig();

			SetConfig(config);
		}
Beispiel #2
0
		public override void Configure(Funq.Container container)
		{
			var bootstrapper = new HostBootstrapper();
			
			EndpointHostConfig config = bootstrapper
				.Bootstrap(Routes)
				.Bootstrap(container)
				.Bootstrap(RequestFilters, ResponseFilters)
				.Bootstrap(ContentTypeFilters)
				.WithConfig();

			SetConfig(config);

			//Set MVC to use the same Funq IOC as ServiceStack
			ControllerBuilder.Current.SetControllerFactory(new FunqControllerFactory(container));
		}