public SwaggerDefinitionBuilder(SwaggerOptions options, HttpContext httpContext, IReadOnlyList <MethodHandler> handlers) { this.options = options; this.httpContext = httpContext; this.handlers = handlers; }
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(); }