Пример #1
0
 public RFGraphReactor(RFCatalogKey key, RFDateBehaviour dateBehaviour, string processName, IRFReadingContext context, Func <RFGraphInstance, RFDate> dateFunc,
                       Func <RFDate, RFDate> maxDateFunc)
 {
     _key           = key;
     _dateBehaviour = dateBehaviour;
     _processName   = processName;
     _context       = context;
     _dateFunc      = dateFunc;
     _maxDateFunc   = maxDateFunc;
 }
Пример #2
0
 public RFTriggerReactor(IRFEngineTrigger trigger, IRFReadingContext context)
 {
     _context = context;
     Trigger  = trigger;
 }
Пример #3
0
 public static RFGraphReactor SimpleReactor(RFCatalogKey key, RFDateBehaviour dateBehaviour, string processName, IRFReadingContext context, Func <RFDate, RFDate> maxInstanceFunc)
 {
     return(new RFGraphReactor(key, dateBehaviour, processName, context, d => d.ValueDate.Value, (d) => maxInstanceFunc(d)));
 }
Пример #4
0
 public static RFGraphReactor RangeReactor(RFCatalogKey key, string processName, IRFReadingContext context, Func <RFGraphInstance, RFDate>
                                           rangeUpdateFunc, Func <RFDate, RFDate> maxInstanceFunc)
 {
     return(new RFGraphReactor(key, RFDateBehaviour.Range, processName, context, rangeUpdateFunc, (d) => maxInstanceFunc(d)));
 }