Steeltoe icon indicating copy to clipboard operation
Steeltoe copied to clipboard

EventCounterListener throws initialization errors

Open hananiel opened this issue 3 years ago • 0 comments

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.

hananiel avatar Aug 10 '22 18:08 hananiel