예제 #1
0
 /// <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);
 }
예제 #2
0
 /// <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);
 }