Open sam-wheat opened 6 months ago
Is is Blazor on .NET 8?
Yes, Blazor on .net 8.
When the code looks like it's not awaiting I think that's just what happens when the exception is thrown in Blazor in this situation.
The only thing I can see that's significantly different between your code and similar code I have working in some projects is that you're using AutoFac and I'm not.
As far as I know, AutoFac should be pulling in anything you registered earlier on like the GraphServiceClient but it might be worth ruling it out if you can easily comment out AutoFac temporarily and use the build in DI and see if the issue still occurs.
Project
Config
Program.cs
Page
My page is called via navigation. None of my code is awaiting it. What am I doing wrong?
Related issues I have found through my research:
https://github.com/AzureAD/microsoft-identity-web/wiki/calling-graph
https://github.com/microsoftgraph/msgraph-sdk-dotnet/issues/58
https://github.com/AzureAD/microsoft-identity-web/issues/1658
https://github.com/AzureAD/microsoft-identity-web/issues/1443
This issue replaces https://github.com/microsoftgraph/msgraph-sdk-dotnet/issues/2472