public void Release(BaseEventArgs eventArgs) { // Clean up fields in event args instance, if needed. RefPoolService.GetOrAdd(eventArgs.GetType()).ReleaseObject(eventArgs); }
private void OnHearEvent2(object sender, BaseEventArgs eventArgs) { Log.Info(eventArgs.GetType().Name); }