Closed jeremydmiller closed 10 years ago
Right now I'm thinking that this happens by making another marker interface like:
IEnvironmentTest that just has Check(IPackageLog).
Options:
Leaning toward option #1. Think it'd be easier to deal w/ making the container facility smarter.
Will want another option where you can bootstrap Bottles w/ only environment tests. If environment tests fail, you don't even try to run activators. The Bottles error has to show the environment tests first
See https://groups.google.com/forum/?hl=en_US&fromgroups=#!topic/fubumvc-devel/c59ccw5Ablk
I think we mostly scrap the Bottles.Environment namespace and start over.
My notes:
EnvironmentActivator : IActivator ctor(IEnumerable)
-- just runs all the IEnvironmentTest's against the IPackageLog passed in.
Might rig it up so that EnvironmentActivator runs as the first activator. Maybe force some kind of ordering in the IBootstrapper?
IEnvironmentTest
Description() : string Check(IPackageLog) -- we'd run this in a try/catch to capture the ex if the Check fails too