Ejemplo n.º 1
0
        public IEndpointConventionBuilder AddRequestDelegate(RoutePattern routePattern, RequestDelegate requestDelegate)
        {
            var builder = new DefaultEndpointConventionBuilder(routePattern, requestDelegate);

            _modelEndpoints.Add(builder);
            return(builder);
        }
Ejemplo n.º 2
0
        public IEndpointConventionBuilder AddEndpointBuilder(EndpointBuilder endpointBuilder)
        {
            var builder = new DefaultEndpointConventionBuilder(endpointBuilder);

            _endpointConventionBuilders.Add(builder);

            return(builder);
        }