public ApiKeyCheckMiddleware(OwinMiddleware next, Services.IApiKeyCheckService apiKeyCheckService) : base(next) { _apiKeyCheckService = apiKeyCheckService; }
public static IAppBuilder UseApiKeyCheck(this IAppBuilder app, Services.IApiKeyCheckService apiKeyCheckService) { return(app.Use <ApiKeyCheckMiddleware>(apiKeyCheckService)); }