Reduce exceptions thrown in Aspire.Hosting #7528
Labels
area-app-model
Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication
untriaged
New issue has not been triaged
Exceptions thrown in the app host are always printed to the debug console. Althrough the errors are handled, they add noise the debug console. For example, #7486
Common exceptions:
HttpOperationException
in many situations. For example,GetAsync
for a resource that doesn't exist throws the error. I'm not sure what options there are to suppress them.OperationCanceledException
is thrown from many canceled async operations. For example, canceling watching for resource notifications.ConfigureAwaitOptions.NoThrow
could be used to stop them. Or gracefully completing channels when we no longer want to read from them instead of aborting read with a cancellation token.The text was updated successfully, but these errors were encountered: