public static IAppBuilder UseBufferAuthentication(this IAppBuilder app,
            BufferAuthenticationOptions options)
        {
            if (app == null)
                throw new ArgumentNullException(nameof(app));
            if (options == null)
                throw new ArgumentNullException(nameof(options));

            app.Use(typeof(BufferAuthenticationMiddleware), app, options);

            return app;
        }
예제 #2
0
        public static IAppBuilder UseBufferAuthentication(this IAppBuilder app,
                                                          BufferAuthenticationOptions options)
        {
            if (app == null)
            {
                throw new ArgumentNullException(nameof(app));
            }
            if (options == null)
            {
                throw new ArgumentNullException(nameof(options));
            }

            app.Use(typeof(BufferAuthenticationMiddleware), app, options);

            return(app);
        }