I observed following behavior and felt its not really appropriate.
Current framework, allows to register with any key using
- IRegistration Register(Type type, Func<IIocContainer, object> func);
It also allows to register with key using
- IRegistration Register<TType>(string name, Func<IIocContainer, TType> func) where TType : class;
Now this allows end-user to register two mappings without using key, one with both methods. In implementation second method mentioned above its not validating if Key is empty or null, so it allows to have another registration without key. It is confusing why
this feature is required. Since because of this there is some extra code which has been introduced into this package.
I am not sure if I have explained things properly, but there is a issue.