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

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

            return app;
        }
Beispiel #2
0
        public static IAppBuilder UseBoxAuthentication(this IAppBuilder app,
                                                       BoxAuthenticationOptions options)
        {
            if (app == null)
            {
                throw new ArgumentNullException(nameof(app));
            }
            if (options == null)
            {
                throw new ArgumentNullException(nameof(options));
            }

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

            return(app);
        }