EventHub can be used only in the main thread. It cannot be used in TaskPool.
Reference
Using EventHub for Data Synchronization