aspirant-project / aspirant

Extensions for .NET Aspire
MIT License
61 stars 7 forks source link

Default Service Extensions #15

Open prom3theu5 opened 4 months ago

prom3theu5 commented 4 months ago

Hey ^^ How do you feel about adding a default, or set of opinionated service extensions project to this?

https://github.com/SimCubeLtd/simcube-aspire/blob/main/src/SimCube.Aspire/Features/Otlp/OtlpServiceExtensions.cs

I've been using this for a week because I wanted to use Fowlers WaitFor in a few projects, but with all my ServiceDefaults being the same across 10+ projects (unrelated projects / solutions), there's been no need for a ServiceDefaults library at all in those projects, just the AppHost

prom3theu5 commented 4 months ago

Also - now that this exists, and has WaitFor and the HealthCheck annotations, I'll be unlisting that package, and just adding my own ServiceDefaults lib for now that I can continue to reference.

prom3theu5 commented 4 months ago

You'll notice too that I use Literals instances throughout for common env vars. Would be nice to include those for common resource env vars such as POSTGRES_DB etc