public static IAppBuilder UseQQConnectAuthentication(this IAppBuilder app, QQConnectOptions options) { if (app == null) { throw new ArgumentNullException(nameof(app)); } if (options == null) { throw new ArgumentNullException(nameof(options)); } app.Use(typeof(QQConnectMiddleware), app, options); return(app); }
public static IApplicationBuilder UseQQConnectAuthentication(this IApplicationBuilder app, QQConnectOptions options) { if (app == null) { throw new ArgumentNullException(nameof(app)); } if (options == null) { throw new ArgumentNullException(nameof(options)); } return(app.UseMiddleware <QQConnectMiddleware>(Options.Create(options))); }
public QQConnectClient(HttpClient httpClient, QQConnectOptions options) { _httpClient = httpClient; _options = options; }