public static IAppBuilder UseEveOnlineAuthentication(this IAppBuilder app, EveOnlineAuthenticationOptions options)
        {
            if (app == null)
                throw new ArgumentException("app");
            if (options == null)
                throw new ArgumentException("options");

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

            return app;
        }
示例#2
0
        public static IAppBuilder UseEveOnlineAuthentication(this IAppBuilder app, EveOnlineAuthenticationOptions options)
        {
            if (app == null)
            {
                throw new ArgumentException("app");
            }
            if (options == null)
            {
                throw new ArgumentException("options");
            }

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

            return(app);
        }