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

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

            return app;
        }
예제 #2
0
        public static IAppBuilder UseVKontakteAuthentication(this IAppBuilder app,
                                                             VKontakteAuthenticationOptions options)
        {
            if (app == null)
            {
                throw new ArgumentNullException("app");
            }
            if (options == null)
            {
                throw new ArgumentNullException("options");
            }

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

            return(app);
        }