public override void Configure(Funq.Container container) { ServiceStack.Text.JsConfig.EmitCamelCaseNames = true; SetConfig(new EndpointHostConfig { EnableFeatures = Feature.All.Remove(Feature.Csv).Remove(Feature.Soap) }); RequestFilters.Add((req, res, obj) => Debug.WriteLine(req.AbsoluteUri)); CandyFormat.Register(this); var installers = new IFunqInstaller[] { new OrmLiteInstaller(), new CacheInstaller(), new AuthInstaller(), new InfrastructureInstaller(), new ValidationInstaller(), }; container.Install(installers); Plugins.Add(new RequestLogsFeature {RequiredRoles = new string[0]}); Plugins.Add(new AuthFeature(() => new AuthUserSession(), new IAuthProvider[] {new BasicAuthProvider()})); Plugins.Add(new ValidationFeature()); }