private IGatewayServiceProvider Create()
        {
            IGatewayServiceProvider gatewayServiceProvider = (IGatewayServiceProvider)this.HttpContext?.RequestServices?.GetService(typeof(IGatewayServiceProvider));

            return(gatewayServiceProvider);
        }
Exemple #2
0
 public JwtAuthorizationService(IOptionsMonitor <BearerSecurityKey> bearerSecurityKey, IGatewayServiceProvider gatewayServiceProvider)
 {
     _bearerSecurityKey      = bearerSecurityKey.CurrentValue;
     _gatewayServiceProvider = gatewayServiceProvider;
 }