<PackageReference Include="System.Reactive" Version="6.0.0" />

DefaultExceptionServices

using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.ExceptionServices; namespace System.Reactive.PlatformServices { internal sealed class DefaultExceptionServices : IExceptionServices { [System.Runtime.CompilerServices.NullableContext(1)] [System.Diagnostics.CodeAnalysis.DoesNotReturn] public void Rethrow(Exception exception) { ExceptionDispatchInfo.Capture(exception).Throw(); } } }