https://github.com/simpleinjector/glimpse
Glimpse plugin for Simple Injector
https://github.com/simpleinjector/glimpse
Last synced: about 1 year ago
JSON representation
Glimpse plugin for Simple Injector
- Host: GitHub
- URL: https://github.com/simpleinjector/glimpse
- Owner: simpleinjector
- Created: 2015-01-07T20:02:56.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2020-07-15T19:22:08.000Z (almost 6 years ago)
- Last Synced: 2025-03-26T01:47:10.506Z (about 1 year ago)
- Language: C#
- Homepage: https://www.nuget.org/packages/Glimpse.SimpleInjector
- Size: 8.87 MB
- Stars: 0
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Glimpse.SimpleInjector
[](https://www.nuget.org/packages/Glimpse.SimpleInjector)
This simple [Glimpse](http://getglimpse.com/) plug-in shows the current [Simple Injector](https://simpleinjector.org) container configuration:
- **Resolved Instances** lists the types that were requested explicitly during the request.
- **Created Instances** lists the types that were created by the container during the request.
- **Diagnostic Warnings** reports any diagnostic warnings found in the current configuration.
- **Root Registrations** shows all root objects with their complete dependency graph.
- **Registrations** lists all of the registrations ordered by the service name.
To use this plug-in you need to pass in the `container` instance *before verification* to allow the plug-in to add it's own hooks into the container and then verify the configuration for itself
```csharp
#if DEBUG
Glimpse
.SimpleInjector
.SimpleInjectorTab
.ConfigureGlimpseAndVerifyContainer(container);
#else
container.Verify();
#endif
```