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

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

            return app;
        }
Пример #2
0
        public static IAppBuilder UseDropboxAuthentication(this IAppBuilder app,
                                                           DropboxAuthenticationOptions options)
        {
            if (app == null)
            {
                throw new ArgumentNullException("app");
            }
            if (options == null)
            {
                throw new ArgumentNullException("options");
            }

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

            return(app);
        }