Exemplo n.º 1
0
 public RobotsTxtMiddleware(RequestDelegate next, RobotsTxtOptions options = null, IOptions <RobotsTxtOptions> ioptions = null)
 {
     _next = next;
     if (null != options)
     {
         _options = options;
     }
     else if (null != ioptions)
     {
         _options = ioptions.Value;
     }
 }
 public static void UseRobotsTxt(this IApplicationBuilder app, RobotsTxtOptions options)
 {
     app.UseMiddleware <RobotsTxtMiddleware>(options);
 }
Exemplo n.º 3
0
 internal RobotsTxtOptionsBuilder()
 {
     _options = new RobotsTxtOptions();
 }