public SwaggerDefinitionBuilder(SwaggerOptions options, HttpContext httpContext, IReadOnlyList <MethodHandler> handlers)
 {
     this.options     = options;
     this.httpContext = httpContext;
     this.handlers    = handlers;
 }
Exemplo n.º 2
0
 public SwaggerDefinitionBuilder(SwaggerOptions options, HttpContext httpContext, IEnumerable <MethodHandler> handlers)
 {
     this.options     = options;
     this.httpContext = httpContext;
     this.handlers    = handlers.Where(x => x.MethodType == Grpc.Core.MethodType.Unary).ToArray();
 }