Whiteknight / StoneFruit

Cli commandlet host and execution environment
https://whiteknight.github.io/StoneFruit/
Apache License 2.0
0 stars 0 forks source link

Implement Microsoft.Extensions.Hosting #21

Open Whiteknight opened 2 years ago

Whiteknight commented 2 years ago

Microsoft.Extensions.Hosting is the way most new applications are developed. It makes sense that StoneFruit would use this same interface for build-up and execution.

The problem is that a lot of what this interface requires goes against how the existing StoneFruit implementations work. Plus all the container bindings don't work great with it either.

I have to decide how much to change the existing interfaces to support IHostBuilder, and whether this is a part of v2 or not.

Whiteknight commented 2 years ago

I have a proof-of-concept for this now, in a branch. I need to decide if I want to include this in StoneFruit core so it's always available (and bring in a bunch of dependencies) or if I want to keep it in a separate assembly