Steeltoe
Steeltoe copied to clipboard
EventCounterListener throws initialization errors
Ocassionally the OnEventWritten gets fired before constructor and throws errors. Need to investigate if related to build failures for example:
https://dev.azure.com/SteeltoeOSS/Steeltoe/_build/results?buildId=9718&view=ms.vss-test-web.build-test-results-tab&runId=1465457&resultId=100245&paneView=debug
The fix is to wait for initialization before attempting processing and also add a thread safe collection to store until initialization.