Exceptions in `ResourceEndpointsAllocatedEvent` are swallowed
- Dominant language
- C#
- Stars
- 6.3k
- Forks
- 991
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 196
Description
### Is there an existing issue for this?
- [x] I have searched the existing issues
### Describe the bug
If an exception gets thrown in `ResourceEndpointsAllocatedEvent` the error gets swallowed and never reported anywhere, nor does the VS Debugger break on the exception.
The failure also doesn't block the resource in question from starting up, which further helps obscure the fact there was an error.
### Expected Behavior
The exception should be logged somewhere, and likely also cause the resource to fail to start.
### Steps To Reproduce
```cs
builder.Eventing.Subscribe((evt, ct) =>
{
throw new Exception("Fail");
});
```
### Exceptions (if any)
_No response_
### .NET Version info
_No response_
### Anything else?
Aspire 9.3
Contributor guide
Assessment
This issue has not been assessed yet.