Exemplo n.º 1
0
        public EventActivitySetBuilder <TEvent, TData> StartWith <TEvent>(EventPredicate <TEvent, TData> predicate = null)
        {
            var ea = new EventActivitySet <TEvent, TData>(true, predicate);

            _eventActivities.Add(ea);
            return(new EventActivitySetBuilder <TEvent, TData>(ea));
        }
Exemplo n.º 2
0
        public EventActivitySetBuilder <TEvent, TData> When <TEvent>(EventPredicate <TEvent, TData> predicate = null)
        {
            var ea = new EventActivitySet <TEvent, TData>(false, predicate);

            _eventActivities.Add(ea);
            return(new EventActivitySetBuilder <TEvent, TData>(ea));
        }
Exemplo n.º 3
0
 public EventActivitySetBuilder(EventActivitySet <TEvent, TData> eventActivitySet)
 {
     _eventActivitySet = eventActivitySet;
 }