コード例 #1
0
 /// <summary>
 /// Initializes an instance of <see cref="QueryValidator"/>
 /// </summary>
 /// <param name="descriptors"><see cref="IQueryValidationDescriptors"/> for getting descriptors for queries for running through rules</param>
 /// <param name="ruleContexts"><see cref="IRuleContexts"/> used for getting <see cref="IRuleContext"/></param>
 public QueryValidator(IQueryValidationDescriptors descriptors, IRuleContexts ruleContexts)
 {
     _descriptors  = descriptors;
     _ruleContexts = ruleContexts;
 }
コード例 #2
0
ファイル: QueryValidator.cs プロジェクト: LenFon/Bifrost
 /// <summary>
 /// Initializes an instance of <see cref="QueryValidator"/>
 /// </summary>
 /// <param name="descriptors"><see cref="IQueryValidationDescriptors"/> for getting descriptors for queries for running through rules</param>
 /// <param name="ruleContexts"><see cref="IRuleContexts"/> used for getting <see cref="IRuleContext"/></param>
 public QueryValidator(IQueryValidationDescriptors descriptors, IRuleContexts ruleContexts)
 {
     _descriptors = descriptors;
     _ruleContexts = ruleContexts;
 }