Using System.ServiceModel.Primitives 6.0.0 with await using instead of using finally solves this issue! (i.e. DisposeAsync instead of Dispose ) It was implemented on Aug 15, 2022 in https://github.com/dotnet/w... No more need to write convoluted disposing code with lots of try/catch, it's now built-in with DisposeAsync. 🎉
Using System.ServiceModel.Primitives 6.0.0 with
await usinginstead ofusingfinally solves this issue! (i.e.DisposeAsyncinstead ofDispose) It was implemented on Aug 15, 2022 in https://github.com/dotnet/w... No more need to write convoluted disposing code with lots of try/catch, it's now built-in with DisposeAsync. 🎉