public IEndpointConventionBuilder AddRequestDelegate(RoutePattern routePattern, RequestDelegate requestDelegate) { var builder = new DefaultEndpointConventionBuilder(routePattern, requestDelegate); _modelEndpoints.Add(builder); return(builder); }
public IEndpointConventionBuilder AddEndpointBuilder(EndpointBuilder endpointBuilder) { var builder = new DefaultEndpointConventionBuilder(endpointBuilder); _endpointConventionBuilders.Add(builder); return(builder); }