This PR updated the ExtenionContainer class to use an instance of EventHub instead of a shared global reference.
This is to avoid a relatively common test scenario where EventHub is started and shutdown rapidly between test cases, and extension containers have pending events that will get sent to the new EventHub instance; this can affect test case state, shared states, processing times, etc.
Description
This PR updated the ExtenionContainer class to use an instance of EventHub instead of a shared global reference.
This is to avoid a relatively common test scenario where EventHub is started and shutdown rapidly between test cases, and extension containers have pending events that will get sent to the new EventHub instance; this can affect test case state, shared states, processing times, etc.
See: https://github.com/adobe/aepsdk-core-ios/issues/1064
Related Issue
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: