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