I\'m trying to integrate some code that was previously used in a Console app (worked fine) into a Blazor app. It\'s not working correctly so I\'m trying to troubleshoot.