コード例 #1
0
 public TestApiVersionActionSelector(
     IActionSelectorDecisionTreeProvider decisionTreeProvider,
     ActionConstraintCache actionConstraintCache,
     IOptions <ApiVersioningOptions> options,
     ILoggerFactory loggerFactory)
     : base(decisionTreeProvider, actionConstraintCache, options, loggerFactory)
 {
 }
コード例 #2
0
 /// <param name="decisionTreeProvider"></param>
 public ODataActionSelector(IServiceProvider serviceProvider,
                            IActionSelectorDecisionTreeProvider decisionTreeProvider,
                            ActionConstraintCache actionConstraintProviders,
                            ILoggerFactory loggerFactory)
 {
     _serviceProvider = serviceProvider;
     _selector        = new ActionSelector(decisionTreeProvider, actionConstraintProviders, loggerFactory);
 }
コード例 #3
0
 public ODataActionSelector(IODataRoutingConvention convention,
     IActionDescriptorsCollectionProvider actionDescriptorsCollectionProvider,
     IActionSelectorDecisionTreeProvider decisionTreeProvider,
     IEnumerable<IActionConstraintProvider> actionConstraintProviders,
     ILoggerFactory loggerFactory)
 {
     _selector = new DefaultActionSelector(actionDescriptorsCollectionProvider, decisionTreeProvider, actionConstraintProviders, loggerFactory);
     _convention = convention;
 }
コード例 #4
0
 /// <summary>
 /// Creates a new <see cref="DefaultActionSelector"/>.
 /// </summary>
 /// <param name="decisionTreeProvider">The <see cref="IActionSelectorDecisionTreeProvider"/>.</param>
 /// <param name="actionConstraintProviders">The set of <see cref="IActionInvokerProvider"/> instances.</param>
 /// <param name="loggerFactory">The <see cref="ILoggerFactory"/>.</param>
 public DefaultActionSelector(
     IActionSelectorDecisionTreeProvider decisionTreeProvider,
     IEnumerable <IActionConstraintProvider> actionConstraintProviders,
     ILoggerFactory loggerFactory)
 {
     _decisionTreeProvider      = decisionTreeProvider;
     _actionConstraintProviders = actionConstraintProviders.OrderBy(item => item.Order).ToArray();
     _logger = loggerFactory.CreateLogger <DefaultActionSelector>();
 }
コード例 #5
0
ファイル: ActionSelector.cs プロジェクト: ymd1223/Mvc
 /// <summary>
 /// Creates a new <see cref="ActionSelector"/>.
 /// </summary>
 /// <param name="decisionTreeProvider">The <see cref="IActionSelectorDecisionTreeProvider"/>.</param>
 /// <param name="actionConstraintCache">The <see cref="ActionConstraintCache"/> that
 /// providers a set of <see cref="IActionConstraint"/> instances.</param>
 /// <param name="loggerFactory">The <see cref="ILoggerFactory"/>.</param>
 public ActionSelector(
     IActionSelectorDecisionTreeProvider decisionTreeProvider,
     ActionConstraintCache actionConstraintCache,
     ILoggerFactory loggerFactory)
 {
     _decisionTreeProvider = decisionTreeProvider;
     _logger = loggerFactory.CreateLogger<ActionSelector>();
     _actionConstraintCache = actionConstraintCache;
 }
コード例 #6
0
 public ODataActionSelector(IODataRoutingConvention convention,
                            IActionDescriptorsCollectionProvider actionDescriptorsCollectionProvider,
                            IActionSelectorDecisionTreeProvider decisionTreeProvider,
                            IEnumerable <IActionConstraintProvider> actionConstraintProviders,
                            ILoggerFactory loggerFactory)
 {
     _selector   = new DefaultActionSelector(actionDescriptorsCollectionProvider, decisionTreeProvider, actionConstraintProviders, loggerFactory);
     _convention = convention;
 }
コード例 #7
0
 /// <summary>
 /// Creates a new <see cref="ActionSelector"/>.
 /// </summary>
 /// <param name="decisionTreeProvider">The <see cref="IActionSelectorDecisionTreeProvider"/>.</param>
 /// <param name="actionConstraintCache">The <see cref="ActionConstraintCache"/> that
 /// providers a set of <see cref="IActionConstraint"/> instances.</param>
 /// <param name="loggerFactory">The <see cref="ILoggerFactory"/>.</param>
 public ActionSelector(
     IActionSelectorDecisionTreeProvider decisionTreeProvider,
     ActionConstraintCache actionConstraintCache,
     ILoggerFactory loggerFactory)
 {
     _decisionTreeProvider = decisionTreeProvider;
     _logger = loggerFactory.CreateLogger <ActionSelector>();
     _actionConstraintCache = actionConstraintCache;
 }
コード例 #8
0
 /// <summary>
 /// Creates a new <see cref="DefaultActionSelector"/>.
 /// </summary>
 /// <param name="decisionTreeProvider">The <see cref="IActionSelectorDecisionTreeProvider"/>.</param>
 /// <param name="actionConstraintProviders">The set of <see cref="IActionInvokerProvider"/> instances.</param>
 /// <param name="loggerFactory">The <see cref="ILoggerFactory"/>.</param>
 public DefaultActionSelector(
     IActionSelectorDecisionTreeProvider decisionTreeProvider,
     IEnumerable<IActionConstraintProvider> actionConstraintProviders,
     ILoggerFactory loggerFactory)
 {
     _decisionTreeProvider = decisionTreeProvider;
     _actionConstraintProviders = actionConstraintProviders.OrderBy(item => item.Order).ToArray();
     _logger = loggerFactory.CreateLogger<DefaultActionSelector>();
 }
コード例 #9
0
 public GoofyActionSelector(
     IActionDescriptorsCollectionProvider actionDescriptorsCollectionProvider,
     IActionSelectorDecisionTreeProvider decisionTreeProvider,
     IEnumerable <IActionConstraintProvider> actionConstraintProviders,
     ILoggerFactory loggerFactory,
     IComponentStore componentStore)
     : base(actionDescriptorsCollectionProvider, decisionTreeProvider, actionConstraintProviders, loggerFactory)
 {
     _componentStore = componentStore;
 }
コード例 #10
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ApiVersionActionSelector"/> class.
 /// </summary>
 /// <param name="decisionTreeProvider">The <see cref="IActionSelectorDecisionTreeProvider"/> used to select candidate routes.</param>
 /// <param name="actionConstraintCache">The <see cref="ActionConstraintCache"/> that providers a set of <see cref="IActionConstraint"/> instances.</param>
 /// <param name="options">The <see cref="ApiVersioningOptions">options</see> associated with the action selector.</param>
 /// <param name="loggerFactory">The <see cref="ILoggerFactory"/>.</param>
 public ApiVersionActionSelector(
     IActionSelectorDecisionTreeProvider decisionTreeProvider,
     ActionConstraintCache actionConstraintCache,
     IOptions <ApiVersioningOptions> options,
     ILoggerFactory loggerFactory)
 {
     this.decisionTreeProvider  = decisionTreeProvider;
     this.actionConstraintCache = actionConstraintCache;
     this.options = options;
     logger       = loggerFactory.CreateLogger <ApiVersionActionSelector>();
 }
コード例 #11
0
 public DefaultActionSelector(
     [NotNull] IActionDescriptorsCollectionProvider actionDescriptorsCollectionProvider,
     [NotNull] IActionSelectorDecisionTreeProvider decisionTreeProvider,
     [NotNull] INestedProviderManager <ActionConstraintProviderContext> actionConstraintProvider,
     [NotNull] ILoggerFactory loggerFactory)
 {
     _actionDescriptorsCollectionProvider = actionDescriptorsCollectionProvider;
     _decisionTreeProvider     = decisionTreeProvider;
     _actionConstraintProvider = actionConstraintProvider;
     _logger = loggerFactory.Create <DefaultActionSelector>();
 }
コード例 #12
0
 public DefaultActionSelector(
     [NotNull] IActionDescriptorsCollectionProvider actionDescriptorsCollectionProvider,
     [NotNull] IActionSelectorDecisionTreeProvider decisionTreeProvider,
     [NotNull] IActionBindingContextProvider bindingProvider,
     [NotNull] ILoggerFactory loggerFactory)
 {
     _actionDescriptorsCollectionProvider = actionDescriptorsCollectionProvider;
     _decisionTreeProvider = decisionTreeProvider;
     _bindingProvider      = bindingProvider;
     _logger = loggerFactory.Create <DefaultActionSelector>();
 }
コード例 #13
0
 public WebSocketRouteHandler(
     IActionSelectorDecisionTreeProvider decisionTreeProvider,
     IControllerFactory controllerFactory,
     ControllerActionInvokerCache cache,
     IWebSocketControllerArgumentBinder argumentBinder,
     IOptions <MvcOptions> optionsAccessor)
 {
     DecisionTree           = decisionTreeProvider.DecisionTree;
     ControllerFactory      = controllerFactory;
     Cache                  = cache;
     ArgumentBinder         = argumentBinder;
     ValueProviderFactories = optionsAccessor.Value.ValueProviderFactories.ToArray();
 }
コード例 #14
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ApiVersionActionSelector"/> class.
        /// </summary>
        /// <param name="decisionTreeProvider">The <see cref="IActionSelectorDecisionTreeProvider"/> used to select candidate routes.</param>
        /// <param name="actionConstraintCache">The <see cref="ActionConstraintCache"/> that providers a set of <see cref="IActionConstraint"/> instances.</param>
        /// <param name="options">The <see cref="ApiVersioningOptions">options</see> associated with the action selector.</param>
        /// <param name="loggerFactory">The <see cref="ILoggerFactory"/>.</param>
        public ApiVersionActionSelector(
            IActionSelectorDecisionTreeProvider decisionTreeProvider,
            ActionConstraintCache actionConstraintCache,
            IOptions <ApiVersioningOptions> options,
            ILoggerFactory loggerFactory)
        {
            Arg.NotNull(decisionTreeProvider, nameof(decisionTreeProvider));
            Arg.NotNull(actionConstraintCache, nameof(actionConstraintCache));
            Arg.NotNull(options, nameof(options));
            Arg.NotNull(loggerFactory, nameof(loggerFactory));

            this.decisionTreeProvider  = decisionTreeProvider;
            this.actionConstraintCache = actionConstraintCache;
            this.options = options;
            Logger       = loggerFactory.CreateLogger(GetType());
        }