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