/// <summary> /// Initializes a new instance of the <see cref="HeaderApiVersionReader"/> class. /// </summary> /// <param name="headerNames">An array of HTTP header names to read the service API version from.</param> public HeaderApiVersionReader(params string[] headerNames) { Arg.NotNull(headerNames, nameof(headerNames)); HeaderNames.AddRange(headerNames); }
/// <summary> /// Initializes a new instance of the <see cref="HeaderApiVersionReader"/> class. /// </summary> /// <param name="headerNames">A <see cref="IEnumerable{T}">sequence</see> of HTTP header names to read the service API version from.</param> public HeaderApiVersionReader(IEnumerable <string> headerNames) { Arg.NotNull(headerNames, nameof(headerNames)); HeaderNames.AddRange(headerNames); }