Glimpse/Glimpse — pull request #504 by nikmd23 (2013-08-02 14:30:39+00:00)
Title: WIP: Code Based API for Configuration

## We'd like to support users who want to configure Glimpse via a strongly typed code-based API.

This would not *replace* the current `web.config` based approach - but would rather augment it.

:exclamation: **This could represent a breaking change** :exclamation:

Here are a few goals for the design:
- [ ] `web.config` settings "win". Meaning if there are conflicting settings in the code API and `web.config`, the later will take precedence. This will allow a user to change a setting for Glimpse without recompiling, which is an important use case for a diagnostics framework.
- [ ] At some point (probably after initialization), Glimpse configuration (or a subset of it) will become immutable. There are just "too many bad things" that can happen by changing configuration while live multi-threaded requests are coming in and I'd rather not have to solve those problems.
- [ ] If possible, I'd still like to support IOC based configuration. Glimpse's current implementation, while well meaning, is weak - but most users already have an IOC container they use to resolve their web framework's run time components (controllers, formatters, modules, etc.).