ipjohnson / Grace

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

Is there support for metadata available ? #85

Closed crystalbyte closed 7 years ago

crystalbyte commented 7 years ago

Is there currently a way to publish and distinguish multiple exports of the same type ?

ipjohnson commented 7 years ago

hi @crystalbyte yes there is support for metadata there is a built in class in Grace called Meta<T> it functions similarly to Autofac and other containers.

You can check out some of the unit tests here. If you have an questions or looking for some enhancements let me know.

crystalbyte commented 7 years ago

Thanks for the quick feedback.

ipjohnson commented 7 years ago

One place that I could see enhancing the metadata would be to add Meta<T, TMetadata> where the properties of TMetadata are bound to metadata properties. I think ninject has something like this.