public PageActionEndpointDataSource(
            IActionDescriptorCollectionProvider actions,
            ActionEndpointFactory endpointFactory,
            OrderedEndpointsSequenceProvider orderedEndpoints)
            : base(actions)
        {
            _endpointFactory = endpointFactory;
            _orderSequence   = orderedEndpoints;
            DefaultBuilder   = new PageActionEndpointConventionBuilder(Lock, Conventions);

            // IMPORTANT: this needs to be the last thing we do in the constructor.
            // Change notifications can happen immediately!
            Subscribe();
        }
    public ControllerActionEndpointDataSource(
        ControllerActionEndpointDataSourceIdProvider dataSourceIdProvider,
        IActionDescriptorCollectionProvider actions,
        ActionEndpointFactory endpointFactory,
        OrderedEndpointsSequenceProvider orderSequence)
        : base(actions)
    {
        _endpointFactory = endpointFactory;

        DataSourceId   = dataSourceIdProvider.CreateId();
        _orderSequence = orderSequence;

        _routes = new List <ConventionalRouteEntry>();

        DefaultBuilder = new ControllerActionEndpointConventionBuilder(Lock, Conventions);

        // IMPORTANT: this needs to be the last thing we do in the constructor.
        // Change notifications can happen immediately!
        Subscribe();
    }
 public ControllerActionEndpointDataSource Create(OrderedEndpointsSequenceProvider orderProvider)
 {
     return(new ControllerActionEndpointDataSource(_dataSourceIdProvider, _actions, _factory, orderProvider));
 }
 public PageActionEndpointDataSource Create(OrderedEndpointsSequenceProvider orderProvider)
 {
     return(new PageActionEndpointDataSource(_dataSourceIdProvider, _actions, _endpointFactory, orderProvider));
 }