public Node(string name, INodeStrategy strategy)
 {
     Name     = name;
     Strategy = strategy;
     Inputs   = new List <Node>();
     Outputs  = new List <Node>();
 }
示例#2
0
 public NodeStrategy(INodeStrategy <EndpointDetails> endpointNodeStrategy, INodeStrategy <ProcessedMessage> messageNodeStrategy)
 {
     _endpointNodeStrategy = endpointNodeStrategy;
     _messageNodeStrategy  = messageNodeStrategy;
 }
示例#3
0
 public void Add(string intent, INodeStrategy <ProcessedMessage> strategy)
 {
     _strategyMap.Add(intent, strategy);
 }
示例#4
0
 public IntentBasedMessageNodeStrategy(INodeStrategy <ProcessedMessage> defaultStrategy)
 {
     _defaultStrategy = defaultStrategy;
 }