internal FlowObservation(FlowType flowType, EventType eventType, FlowRoute route, FlowMethodSet <FlowGiven> given) { FlowType = flowType; EventType = eventType; Route = route; Given = given; }
internal TopicObservation( FlowType flowType, EventType eventType, FlowRoute route, FlowMethodSet <FlowGiven> given, FlowMethodSet <TopicWhen> when) : base(flowType, eventType, route, given) { When = when; }
internal FlowRoute(MethodInfo info, EventType eventType, FlowType flowType, bool first) : base(info, eventType) { FlowType = flowType; First = first; if (info.ReturnType == typeof(Id)) { _callSingle = new Lazy <Func <Event, Id> >(CompileCallSingle); } else { _callMultiple = new Lazy <Func <Event, IEnumerable <Id> > >(CompileCallMultiple); } }
public bool TryGetFlow(AreaTypeName name, out FlowType type) { if (Topics.TryGet(name, out var topic)) { type = topic; } else if (Queries.TryGet(name, out var query)) { type = query; } else { type = null; } return(type != null); }