ipjohnson / Grace

Grace is a feature rich dependency injection container library
MIT License
336 stars 33 forks source link

Provide simple way to check is type registered #126

Closed mcdis closed 6 years ago

mcdis commented 6 years ago

In Unity there is IsRegistered(Type _t) method eixists. Using them you can check does registration to type exitst. IsRegistered check from child to parent containers.

ipjohnson commented 6 years ago

Hi @mcdis

There is a method on the registration block called IsExported that should be what you are looking for

ipjohnson commented 6 years ago

@mcdis Did this work for you?

mcdis commented 6 years ago

Will try soon and answer

ipjohnson commented 6 years ago

As I haven't heard back that this doesn't work I'm closing the issue