public EpiOpenIdScopeManager(
     IOpenIddictScopeCache <TScope> cache,
     ILogger <OpenIddictScopeManager <TScope> > logger,
     IOptionsMonitor <OpenIddictCoreOptions> options,
     IOpenIddictScopeStoreResolver resolver) : base(cache, logger, options, resolver)
 {
 }
예제 #2
0
 public OpenGenericScopeManager(
     IOpenIddictScopeStoreResolver resolver,
     ILogger <OpenIddictScopeManager <TScope> > logger,
     IOptionsMonitor <OpenIddictCoreOptions> options)
     : base(resolver, logger, options)
 {
 }
 public ClosedGenericScopeManager(
     IOpenIddictScopeCache <CustomScope> cache,
     IOpenIddictScopeStoreResolver resolver,
     ILogger <OpenIddictScopeManager <CustomScope> > logger,
     IOptionsMonitor <OpenIddictCoreOptions> options)
     : base(cache, resolver, logger, options)
 {
 }
 public OpenIddictScopeCache(
     IOptionsMonitor <OpenIddictCoreOptions> options,
     IOpenIddictScopeStoreResolver resolver)
 {
     _cache = new MemoryCache(new MemoryCacheOptions
     {
         SizeLimit = (options ?? throw new ArgumentNullException(nameof(options))).CurrentValue.EntityCacheLimit
     });
 public OpenGenericScopeManager(
     IOpenIddictScopeCache <TScope> cache,
     IStringLocalizer <OpenIddictResources> localizer,
     ILogger <OpenIddictScopeManager <TScope> > logger,
     IOptionsMonitor <OpenIddictCoreOptions> options,
     IOpenIddictScopeStoreResolver resolver)
     : base(cache, localizer, logger, options, resolver)
 {
 }
 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>();
 }
예제 #8
0
 public OpenIddictScopeManager(
     IOpenIddictScopeCache <TScope> cache,
     ILogger <OpenIddictScopeManager <TScope> > logger,
     IOptionsMonitor <OpenIddictCoreOptions> options,
     IOpenIddictScopeStoreResolver resolver)
 {
     Cache   = cache ?? throw new ArgumentNullException(nameof(cache));
     Logger  = logger ?? throw new ArgumentNullException(nameof(logger));
     Options = options ?? throw new ArgumentNullException(nameof(options));
     Store   = (resolver ?? throw new ArgumentNullException(nameof(resolver))).Get <TScope>();
 }
예제 #9
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>();
        }