static void Main(string[] args)
{
using var _ = SentrySdk.Init();
throw null;
}
This exception is captured as expected by the unhandled exception handler.
static async Task Main(string[] args)
{
using var _ = SentrySdk.Init();
throw null;
}
The code above doesn't work as expected. Before calling the UnhandledException handler the SDK goes out of the using "block" and unregisters the unhandled exception integration.