/// <summary> /// Create a new instance. /// </summary> /// <param name="partitioner">The <see cref="IValuePartitioner"/> service to be used.</param> /// <param name="httpContextAccessor">The <see cref="IHttpContextAccessor"/> service to be used.</param> public GradualRolloutHeaderValueToggle( IValuePartitioner partitioner, IHttpContextAccessor httpContextAccessor) { _partitioner = partitioner ?? throw new ArgumentNullException(nameof(partitioner)); _httpContextAccessor = httpContextAccessor ?? throw new ArgumentNullException(nameof(httpContextAccessor)); }
/// <summary> /// Create a new instance. /// </summary> /// <param name="partitioner">The <see cref="IValuePartitioner"/> service to be used.</param> /// <param name="featureStore">The <see cref="IRuntimeFeatureStore"/> service to be used.</param> /// <param name="httpContextAccessor">The <see cref="IHttpContextAccessor"/> service to be used.</param> public GradualRolloutHeaderValueToggle( IValuePartitioner partitioner, IRuntimeFeatureStore featureStore, IHttpContextAccessor httpContextAccessor) { _partitioner = partitioner ?? throw new ArgumentNullException(nameof(partitioner)); _featureStore = featureStore ?? throw new ArgumentNullException(nameof(featureStore)); _httpContextAccessor = httpContextAccessor ?? throw new ArgumentNullException(nameof(httpContextAccessor)); }
/// <summary> /// Create a new instance of <see cref="GradualRolloutUserNameToggle"/> toggle. /// </summary> /// <param name="partitioner">The <see cref="IValuePartitioner"/> service to be used.</param> /// <param name="userNameProviderService">The <see cref="IUserNameProviderService"/> service to be used.</param> /// <param name="featureStore">The <see cref="IRuntimeFeatureStore"/> service to be used.</param> public GradualRolloutUserNameToggle( IValuePartitioner partitioner, IUserNameProviderService userNameProviderService, IRuntimeFeatureStore featureStore) { _partitioner = partitioner ?? throw new ArgumentNullException(nameof(partitioner)); _userNameProviderService = userNameProviderService ?? throw new System.ArgumentNullException(nameof(userNameProviderService)); _featureStore = featureStore ?? throw new System.ArgumentNullException(nameof(featureStore)); }