public OpenIddictScopeManager(
     [NotNull] IOpenIddictScopeStore <TScope> store,
     [NotNull] ILogger <OpenIddictScopeManager <TScope> > logger)
 {
     Logger = logger;
     Store  = store;
 }
 public AbpOpenIddictScopeCacheAbpOpenIddictAuthorizationCache(
     IDistributedCache <OpenIddictScopeModel> cache,
     IDistributedCache <OpenIddictScopeModel[]> arrayCache,
     IOpenIddictScopeStore <OpenIddictScopeModel> store)
     : base(cache, arrayCache, store)
 {
 }
Exemple #3
0
 public OpenIddictScopeManager(
     [NotNull] IServiceProvider services,
     [NotNull] IOpenIddictScopeStore <TScope> store,
     [NotNull] ILogger <OpenIddictAuthorizationManager <TScope> > logger)
 {
     Context = services?.GetService <IHttpContextAccessor>()?.HttpContext;
     Logger  = logger;
     Store   = store;
 }
Exemple #4
0
        public OpenIddictScopeCache(
            IOptionsMonitor <OpenIddictCoreOptions> options,
            IOpenIddictScopeStoreResolver resolver)
        {
            _cache = new MemoryCache(new MemoryCacheOptions
            {
                SizeLimit = options.CurrentValue.EntityCacheLimit
            });

            _signals = new ConcurrentDictionary <string, CancellationTokenSource>(StringComparer.Ordinal);
            _store   = resolver.Get <TScope>();
        }