/// <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; }
/// <summary> /// Creates a new <see cref="ActionSelector"/>. /// </summary> /// <param name="actionDescriptorCollectionProvider"> /// The <see cref="IActionDescriptorCollectionProvider"/>. /// </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( IActionDescriptorCollectionProvider actionDescriptorCollectionProvider, ActionConstraintCache actionConstraintCache, ILoggerFactory loggerFactory) { _actionDescriptorCollectionProvider = actionDescriptorCollectionProvider; _logger = loggerFactory.CreateLogger <ActionSelector>(); _actionConstraintCache = actionConstraintCache; }