Esempio n. 1
0
 protected abstract void AsyncEventDispatcher(TorEvent asyncEvent);
Esempio n. 2
0
 private static void tc_OnAsyncEvents(TorEvent obj)
 {
     Console.WriteLine(string.Format("[EVENT] {0} -> {1}", obj.Event, obj.EventLine));
 }
Esempio 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);
         }
     });
 }
Esempio n. 4
0
 private void Resolve_Event(TorEvent obj)
 {
     // TODO: wait tykonket to implement the ADDRMAP event.
 }
Esempio n. 5
0
 protected override void AsyncEventDispatcher(TorEvent asyncEvent)
 {
     AsyncEventDispatcher(new List<TorEvent>() { asyncEvent });
 }