コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NoPersistentDynamicManager{TSchemeDefinition}"/> class.
 /// </summary>
 /// <param name="schemeProvider">The scheme provider.</param>
 /// <param name="wrapperFactory">The wrapper factory.</param>
 /// <param name="managedTypes">The list of managed handlers types.</param>
 /// <exception cref="ArgumentNullException">
 /// schemeProvider
 /// or
 /// wrapperFactory
 /// or
 /// store
 /// </exception>
 public NoPersistentDynamicManager(IAuthenticationSchemeProvider schemeProvider,
                                   OptionsMonitorCacheWrapperFactory wrapperFactory,
                                   IEnumerable <Type> managedTypes)
 {
     _schemeProvider    = schemeProvider ?? throw new ArgumentNullException(nameof(schemeProvider));
     _wrapperFactory    = wrapperFactory ?? throw new ArgumentNullException(nameof(wrapperFactory));
     ManagedHandlerType = managedTypes ?? throw new ArgumentNullException(nameof(managedTypes));
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PersistentDynamicManager{TSchemeDefinition}"/> class.
 /// </summary>
 /// <param name="schemeProvider">The scheme provider.</param>
 /// <param name="wrapperFactory">The wrapper factory.</param>
 /// <param name="store">The store.</param>
 /// <param name="managedTypes">The managed types.</param>
 /// <exception cref="ArgumentNullException">store</exception>
 public PersistentDynamicManager(IAuthenticationSchemeProvider schemeProvider, OptionsMonitorCacheWrapperFactory wrapperFactory, IDynamicProviderStore <TSchemeDefinition> store, IEnumerable <Type> managedTypes)
     : base(schemeProvider, wrapperFactory, managedTypes)
 {
     _store = store ?? throw new ArgumentNullException(nameof(store));
 }