SimonG96 / LightweightIocContainer

A lightweight IOC Container that is powerful enough to do all the things you need it to do.
MIT License
4 stars 2 forks source link

Add `Instance()` method to `DefaultRegistration` #23

Closed SimonG96 closed 4 years ago

SimonG96 commented 4 years ago

Add Instance() method to DefaultRegistration to return the given instance when the registered type is resolved.

This should only be possible for Lifestyle.Singleton.

SimonG96 commented 4 years ago

This is not needed once #24 is implemented.