public TeapotMiddleware(OwinMiddleware next, TeapotOptions options)
            : base(next)
        {
            if (options == null)
            {
                throw new ArgumentNullException("options");
            }

            this.options = options;
        }
Ejemplo n.º 2
0
        public static IAppBuilder UseTeapotMiddleware(this IAppBuilder app, TeapotOptions options)
        {
            app.Use <TeapotMiddleware>(options);

            return(app);
        }