public DynamicControllerEndpointSelector(ControllerActionEndpointDataSource dataSource)
        {
            if (dataSource == null)
            {
                throw new ArgumentNullException(nameof(dataSource));
            }

            _dataSource = dataSource;
            _cache      = new DataSourceDependentCache <ActionSelectionTable <RouteEndpoint> >(dataSource, Initialize);
        }
示例#2
0
 public DynamicControllerEndpointSelector(ControllerActionEndpointDataSource dataSource)
     : this((EndpointDataSource)dataSource)
 {
 }