コード例 #1
0
 public PageActionEndpointDataSourceFactory(
     PageActionEndpointDataSourceIdProvider dataSourceIdProvider,
     IActionDescriptorCollectionProvider actions,
     ActionEndpointFactory endpointFactory)
 {
     _dataSourceIdProvider = dataSourceIdProvider;
     _actions         = actions;
     _endpointFactory = endpointFactory;
 }
コード例 #2
0
        public PageActionEndpointDataSource(
            PageActionEndpointDataSourceIdProvider dataSourceIdProvider,
            IActionDescriptorCollectionProvider actions,
            ActionEndpointFactory endpointFactory,
            OrderedEndpointsSequenceProvider orderedEndpoints)
            : base(actions)
        {
            DataSourceId     = dataSourceIdProvider.CreateId();
            _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();
        }