Exemplo n.º 1
0
        public IAppBuilder Use(object middleware, params object[] args)
        {
            var properFunc = middleware as Func <IDictionary <string, object>, Func <IDictionary <string, object>, Task>, Task>;

            if (properFunc != null)
            {
                _fixer.Use(properFunc);
                return(this);
            }
            throw new NotSupportedException("FixAppBuilder can't use that middleware.");
        }
Exemplo n.º 2
0
 public static void Setup(Fixer fixer)
 {
     fixer.Use(Application.Run);
 }