public XRobotsTagMiddleware(RobotsTagDirectiveList headerValue)
 {
     Directives   = headerValue ?? throw new ArgumentNullException(nameof(headerValue));
     _headerValue = Directives.ToString();
 }
 public static IServiceCollection AddXRobotsTag(this IServiceCollection services, RobotsTagDirectiveList options)
 {
     services.AddSingleton <XRobotsTagMiddleware>();
     services.AddSingleton(options);
     return(services);
 }