示例#1
0
        private IGatewayServiceProvider Create()
        {
            IGatewayServiceProvider gatewayServiceProvider = (IGatewayServiceProvider)this.HttpContext?.RequestServices?.GetService(typeof(IGatewayServiceProvider));

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