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