public ILiaraConfiguration GetLiaraConfig() { var config = new LiaraConfiguration(); config.Handlers.Add(new HelloHandler()); return(config); }
public ILiaraConfiguration GetLiaraConfig() { var config = new LiaraConfiguration(); config.Handlers.Add(new ParallelOrderedCompositionHandler()); config.Handlers.Add(new ParallelUnorderedCompositionHandler()); config.Handlers.Add(new HelloHandler()); config.Handlers.Add(new ResponseOnlyHandler()); return config; }
public ILiaraConfiguration GetLiaraConfig() { var config = new LiaraConfiguration(); config.Handlers.Add(new ParallelOrderedCompositionHandler()); config.Handlers.Add(new ParallelUnorderedCompositionHandler()); config.Handlers.Add(new HelloHandler()); config.Handlers.Add(new ResponseOnlyHandler()); return(config); }
public ILiaraConfiguration GetLiaraConfig() { var config = new LiaraConfiguration(); //config.Handlers.Add(new HelloHandler()); config.Build(); //config.Formatters.Remove(config.Formatters.FirstOrDefault(x => x.GetType() == typeof(RazorViewFormatter))); //config.Handlers.Remove(config.Handlers.FirstOrDefault(x => x.GetType() == typeof (LiaraThrottleHandler))); //var throttleHandler = new LiaraThrottleHandler {MaxConcurrentRequests = 10}; //config.Handlers.Insert(0, throttleHandler); return(config); }
public ILiaraConfiguration GetLiaraConfig() { var config = new LiaraConfiguration(); config.Handlers.Add(new HelloHandler()); return config; }
public ILiaraConfiguration GetLiaraConfig() { var config = new LiaraConfiguration(); //config.Handlers.Add(new HelloHandler()); config.Build(); //config.Formatters.Remove(config.Formatters.FirstOrDefault(x => x.GetType() == typeof(RazorViewFormatter))); //config.Handlers.Remove(config.Handlers.FirstOrDefault(x => x.GetType() == typeof (LiaraThrottleHandler))); //var throttleHandler = new LiaraThrottleHandler {MaxConcurrentRequests = 10}; //config.Handlers.Insert(0, throttleHandler); return config; }