Esempio n. 1
0
 /// <summary>
 /// Creates resolver strategy instance with a predefined context.
 /// </summary>
 /// <param name="segmentationContext">A set of predefined parameters, which are using by strategies.</param>
 public DCCombiningStrategy(DCSegmentationContext segmentationContext) : base(segmentationContext)
 {
     SelectBuilder = new DCSelectBuilder();
 }
 /// <summary>
 /// Constructor to prepare medium chain node with the next rule.
 /// </summary>
 /// <param name="context">An instance of <see cref="DCSegmentationContext"/> class.</param>
 /// <param name="nextRule">Will be processed if no strategy specified.</param>
 /// <exception cref="ArgumentNullOrEmptyException">Thrown when <paramref name="context"/> is null.</exception>
 public DCStrategyResolverRule(DCSegmentationContext context, DCStrategyResolverRule nextRule)
 {
     context.CheckArgumentNull(nameof(context));
     Context  = context;
     NextRule = nextRule;
 }
 /// <summary>
 /// Constructor to prepare medium chain node with the next rule.
 /// </summary>
 /// <param name="context">An instance of <see cref="DCSegmentationContext"/> class.</param>
 /// <param name="nextRule">Will be processed if no strategy specified.</param>
 public DCGroupsAnalyzationRule(DCSegmentationContext context, DCStrategyResolverRule nextRule)
     : base(context, nextRule)
 {
 }
 /// <summary>
 /// Constructor to prepare last chain node without a next rule but with default
 /// <see cref="DCSegmentationStrategyBase"/> instance.
 /// </summary>
 /// <param name="context">An instance of <see cref="DCSegmentationContext"/> class.</param>
 /// <param name="defaultStrategy">Will be returned if no strategy specified.</param>
 /// /// <exception cref="ArgumentNullOrEmptyException">Thrown when <paramref name="context"/> is null.</exception>
 public DCStrategyResolverRule(DCSegmentationContext context, DCSegmentationStrategyBase defaultStrategy)
 {
     context.CheckArgumentNull(nameof(context));
     Context         = context;
     DefaultStrategy = defaultStrategy;
 }
 /// <summary>
 /// Constructor to prepare last chain node without a next rule but with default
 /// <see cref="DCSegmentationStrategyBase"/> instance.
 /// </summary>
 /// <param name="context">An instance of <see cref="DCSegmentationContext"/> class.</param>
 /// <param name="defaultStrategy">Will be returned if no strategy specified.</param>
 public DCRecipientsAnalyzationRule(DCSegmentationContext context, DCSegmentationStrategyBase defaultStrategy)
     : base(context, defaultStrategy)
 {
 }
Esempio n. 6
0
 /// <summary>
 /// Creates resolver strategy instance with a predefined context.
 /// </summary>
 /// <param name="segmentationContext">A set of predefined parameters, which are using by strategies.</param>
 /// <exception cref="ArgumentNullOrEmptyException">When <paramref name="segmentationContext"/> is null.
 /// </exception>
 public DCGroupingStrategy(DCSegmentationContext segmentationContext) : base(segmentationContext)
 {
     segmentationContext.CheckArgumentNull(nameof(segmentationContext));
 }
 /// <summary>
 /// Creates resolver strategy instance with a predefined context.
 /// </summary>
 /// <param name="segmentationContext">A set of predefined parameters, which are using by strategies.</param>
 public DCSegmentationStrategyBase(DCSegmentationContext segmentationContext)
 {
     SegmentationContext = segmentationContext;
 }
 /// <summary>
 /// Constructor to prepare last chain node without a next rule but with default
 /// <see cref="DCSegmentationStrategyBase"/> instance.
 /// </summary>
 /// <param name="context">An instance of <see cref="DCSegmentationContext"/> class.</param>
 /// <param name="defaultStrategy">Will be returned if no strategy specified.</param>
 public DCEnabledStrategiesAnalyzationRule(DCSegmentationContext context,
                                           DCSegmentationStrategyBase defaultStrategy) : base(context, defaultStrategy)
 {
 }