Esempio n. 1
0
 public void Hear(string pattern, Action <ISourcedContext <ITextMessage> > context)
 {
     _engine.RegisterExecutor(
         new SourcedContextExecutor <ITextMessage>(
             context,
             new TextMessageRegexFilter(pattern)));
 }