/// <summary> /// Initializes a new instance of the <see cref="SchemeChangeSubscriber{TSchemeDefinition}"/> class. /// </summary> /// <param name="factory">The factory.</param> /// <param name="manager">The manager.</param> /// <param name="store">The store.</param> /// <exception cref="ArgumentNullException"> /// factory /// or /// manager /// or /// manager /// </exception> public SchemeChangeSubscriber(HubConnectionFactory factory, NoPersistentDynamicManager <TSchemeDefinition> manager, IDynamicProviderStore <TSchemeDefinition> store) { _factory = factory ?? throw new ArgumentNullException(nameof(factory)); _manager = manager ?? throw new ArgumentNullException(nameof(manager)); _store = store ?? throw new ArgumentNullException(nameof(manager)); }
/// <summary> /// Initializes a new instance of the <see cref="SchemeChangeSubscriber{TSchemeDefinition}" /> class. /// </summary> /// <param name="factory">The factory.</param> /// <param name="manager">The manager.</param> /// <param name="store">The store.</param> /// <param name="dataProtectionKeyManagerWrapper">The data protection key manager wrapper.</param> /// <param name="signingKeyManagerWrapper">The signing key manager wrapper.</param> /// <param name="logger">The logger.</param> /// <exception cref="ArgumentNullException">factory /// or /// manager /// or /// manager</exception> public SchemeChangeSubscriber(HubConnectionFactory factory, NoPersistentDynamicManager <TSchemeDefinition> manager, IDynamicProviderStore <TSchemeDefinition> store, KeyManagerWrapper <IAuthenticatedEncryptorDescriptor> dataProtectionKeyManagerWrapper, KeyManagerWrapper <RsaEncryptorDescriptor> signingKeyManagerWrapper, ILogger <SchemeChangeSubscriber <TSchemeDefinition> > logger) { _factory = factory ?? throw new ArgumentNullException(nameof(factory)); _manager = manager ?? throw new ArgumentNullException(nameof(manager)); _store = store ?? throw new ArgumentNullException(nameof(manager)); _dataProtectionKeyManagerWrapper = dataProtectionKeyManagerWrapper ?? throw new ArgumentNullException(nameof(dataProtectionKeyManagerWrapper)); _signingKeyManagerWrapper = signingKeyManagerWrapper ?? throw new ArgumentNullException(nameof(signingKeyManagerWrapper)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
/// <summary> /// Initializes a new instance of the <see cref="ProviderClient"/> class. /// </summary> /// <param name="hubConnectionFactory">The hub connection factory.</param> /// <exception cref="ArgumentNullException"> /// context /// or /// hubConnectionFactory /// </exception> public ProviderClient(HubConnectionFactory hubConnectionFactory) { _hubConnectionFactory = hubConnectionFactory ?? throw new ArgumentNullException(nameof(hubConnectionFactory)); }
/// <summary> /// Initializes a new instance of the <see cref="ProviderClient"/> class. /// </summary> /// <param name="context">The context.</param> /// <param name="hubConnectionFactory">The hub connection factory.</param> /// <exception cref="ArgumentNullException"> /// context /// or /// hubConnectionFactory /// </exception> public ProviderClient(IHubContext <ProviderHub> context, HubConnectionFactory hubConnectionFactory) { _context = context ?? throw new ArgumentNullException(nameof(context)); _hubConnectionFactory = hubConnectionFactory ?? throw new ArgumentNullException(nameof(hubConnectionFactory)); }