public OpenIddictScopeManager(
     [NotNull] IOpenIddictScopeStoreResolver resolver,
     [NotNull] ILogger <OpenIddictScopeManager <TScope> > logger,
     [NotNull] IOptionsMonitor <OpenIddictCoreOptions> options)
 {
     Store   = resolver.Get <TScope>();
     Logger  = logger;
     Options = options;
 }
 public OpenIddictScopeManager(
     IOpenIddictScopeCache <TScope> cache,
     ILogger <OpenIddictScopeManager <TScope> > logger,
     IOptionsMonitor <OpenIddictCoreOptions> options,
     IOpenIddictScopeStoreResolver resolver)
 {
     Cache   = cache;
     Logger  = logger;
     Options = options;
     Store   = resolver.Get <TScope>();
 }
Exemplo n.º 3
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>();
        }