public static IAppBuilder UseStackExchangeAuthentication(this IAppBuilder app, StackExchangeAuthenticationOptions options)
        {
            if (app == null)
            {
                throw new ArgumentNullException("app");
            }
            if (options == null)
            {
                throw new ArgumentNullException("options");
            }

            app.Use(typeof(StackExchangeAuthenticationMiddleware), app, options);
            return app;
        }
コード例 #2
0
        public static IAppBuilder UseStackExchangeAuthentication(this IAppBuilder app, StackExchangeAuthenticationOptions options)
        {
            if (app == null)
            {
                throw new ArgumentNullException("app");
            }
            if (options == null)
            {
                throw new ArgumentNullException("options");
            }

            app.Use(typeof(StackExchangeAuthenticationMiddleware), app, options);
            return(app);
        }