コード例 #1
0
        public TeapotMiddleware(OwinMiddleware next, TeapotOptions options)
            : base(next)
        {
            if (options == null)
            {
                throw new ArgumentNullException("options");
            }

            this.options = options;
        }
コード例 #2
0
        public static IAppBuilder UseTeapotMiddleware(this IAppBuilder app, TeapotOptions options)
        {
            app.Use<TeapotMiddleware>(options);

            return app;
        }