/// <summary> /// Initializes a new instance of the <see cref="RuleEngineContext<TSubject>"/> class. /// </summary> /// <param name="subject">Subject for the context.</param> /// <param name="ruleViolationReporter"><see cref="IRuleViolationReporter">RuleViolationReporter</see> of the context.</param> /// <param name="ruleSelector"><see cref="IRuleSelector">RuleSelector</see> of the context.</param> /// <param name="nameProvider"><see cref="INameProvider">NameProvider</see> of the context.</param> /// <param name="parentContext">Optional Parent RuleEngineContext.</param> public RuleEngineContext( TSubject subject, IRuleViolationReporter ruleViolationReporter, IRuleSelector ruleSelector, INameProvider nameProvider, IRuleEngineContext parentContext = null) : base(subject, ruleViolationReporter, ruleSelector, nameProvider, parentContext) { Subject = subject; }
/// <summary> /// Initializes a new instance of the <see cref="RuleEngineContext<TSubject>"/> class. /// </summary> /// <param name="subject">Subject for the context.</param> /// <param name="ruleViolationReporter"><see cref="IRuleViolationReporter">RuleViolationReporter</see> of the context.</param> /// <param name="ruleSelector"><see cref="IRuleSelector">RuleSelector</see> of the context.</param> /// <param name="parentContext">Optional Parent RuleEngineContext.</param> public RuleEngineContext( TSubject subject, IRuleViolationReporter ruleViolationReporter, IRuleSelector ruleSelector, IRuleEngineContext parentContext = null) : this(subject, ruleViolationReporter, ruleSelector, null, parentContext) { }
/// <summary> /// Initializes a new instance of the <see cref="RuleEngineContext<TSubject>"/> class. /// </summary> /// <param name="subject">Subject for the context.</param> /// <param name="ruleViolationReporter"><see cref="IRuleViolationReporter">RuleViolationReporter</see> of the context.</param> /// <param name="nameProvider"><see cref="INameProvider">NameProvider</see> of the context.</param> /// <param name="parentContext">Optional Parent RuleEngineContext.</param> public RuleEngineContext( TSubject subject, IRuleViolationReporter ruleViolationReporter, INameProvider nameProvider, IRuleEngineContext parentContext = null) : this(subject, ruleViolationReporter, null, nameProvider, parentContext) { }