private IGatewayServiceProvider Create() { IGatewayServiceProvider gatewayServiceProvider = (IGatewayServiceProvider)this.HttpContext?.RequestServices?.GetService(typeof(IGatewayServiceProvider)); return(gatewayServiceProvider); }
public JwtAuthorizationService(IOptionsMonitor <BearerSecurityKey> bearerSecurityKey, IGatewayServiceProvider gatewayServiceProvider) { _bearerSecurityKey = bearerSecurityKey.CurrentValue; _gatewayServiceProvider = gatewayServiceProvider; }