public IEndpointConventionBuilder AddRequestDelegate(RoutePattern routePattern, RequestDelegate requestDelegate)
        {
            var builder = new DefaultEndpointConventionBuilder(routePattern, requestDelegate);

            _modelEndpoints.Add(builder);
            return(builder);
        }
示例#2
0
        public IEndpointConventionBuilder AddEndpointBuilder(EndpointBuilder endpointBuilder)
        {
            var builder = new DefaultEndpointConventionBuilder(endpointBuilder);

            _endpointConventionBuilders.Add(builder);

            return(builder);
        }