That helped me a lot! I read the topic that you linked to before I posted but the way you called the function in main led me to another article that helped explain the problem I have been having.
ConfigureAwait(false);
This article explains why that line is needed.
Article: https://medium.com/bynder-tech/c-why-you-should-use-configureawait-false-in-your-library-code-d7837dce3d7f
I would not have known to search for it if you had not helped so thank you!
Best regards,
Ben