Exemplo n.º 1
0
 protected abstract void AsyncEventDispatcher(TorEvent asyncEvent);
Exemplo n.º 2
0
 private static void tc_OnAsyncEvents(TorEvent obj)
 {
     Console.WriteLine(string.Format("[EVENT] {0} -> {1}", obj.Event, obj.EventLine));
 }
Exemplo n.º 3
0
 protected override void AsyncEventDispatcher(TorEvent asyncEvent)
 {
     Task.Run(() =>
     {
         if (OnAsyncEvents != null)
         {
             OnAsyncEvents.Invoke(asyncEvent);
         }
         if (OnAsyncEvent.ContainsKey(asyncEvent.Event))
         {
             OnAsyncEvent[asyncEvent.Event].Dispatch(asyncEvent);
         }
     });
 }
Exemplo n.º 4
0
 private void Resolve_Event(TorEvent obj)
 {
     // TODO: wait tykonket to implement the ADDRMAP event.
 }
Exemplo n.º 5
0
 protected override void AsyncEventDispatcher(TorEvent asyncEvent)
 {
     AsyncEventDispatcher(new List<TorEvent>() { asyncEvent });
 }