public ControllerActionEndpointDataSourceFactory( ControllerActionEndpointDataSourceIdProvider dataSourceIdProvider, IActionDescriptorCollectionProvider actions, ActionEndpointFactory factory) { _dataSourceIdProvider = dataSourceIdProvider; _actions = actions; _factory = factory; }
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(); }