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

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

            return app;
        }
示例#2
0
        public static IAppBuilder UseXingAuthentication(this IAppBuilder app, XingAuthenticationOptions options)
        {
            if (app == null)
            {
                throw new ArgumentNullException(nameof(app));
            }
            if (options == null)
            {
                throw new ArgumentNullException(nameof(options));
            }

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

            return(app);
        }