示例#1
0
文件: Program.cs 项目: xiaohszx/Liara
        public ILiaraConfiguration GetLiaraConfig()
        {
            var config = new LiaraConfiguration();

            config.Handlers.Add(new HelloHandler());
            return(config);
        }
示例#2
0
 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;
 }
示例#3
0
文件: Program.cs 项目: xiaohszx/Liara
        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);
        }
示例#4
0
文件: Program.cs 项目: xiaohszx/Liara
        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);
        }
示例#5
0
 public ILiaraConfiguration GetLiaraConfig()
 {
     var config = new LiaraConfiguration();
     config.Handlers.Add(new HelloHandler());
     return config;
 }
示例#6
0
        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;
        }