public static IAppBuilder UseVkAuthentication(this IAppBuilder app, VkAuthenticationOptions options) { if (app == null) { throw new ArgumentNullException("app"); } if (options == null) { throw new ArgumentNullException("options"); } app.Use(typeof (VkAuthenticationMiddleware), app, options); return app; }
public static IAppBuilder UseVkAuthentication(this IAppBuilder app, VkAuthenticationOptions options) { if (app == null) { throw new ArgumentNullException("app"); } if (options == null) { throw new ArgumentNullException("options"); } app.Use(typeof(VkAuthenticationMiddleware), app, options); return(app); }