public static IAppBuilder UseEnumAuthentication(this IAppBuilder app,
            EnumAuthenticationOptions options)
        {
            if (app == null)
                throw new ArgumentNullException("app");
            if (options == null)
                throw new ArgumentNullException("options");

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

            return app;
        }
Ejemplo n.º 2
0
        public static IAppBuilder UseEnumAuthentication(this IAppBuilder app,
                                                        EnumAuthenticationOptions options)
        {
            if (app == null)
            {
                throw new ArgumentNullException("app");
            }
            if (options == null)
            {
                throw new ArgumentNullException("options");
            }

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

            return(app);
        }