dolittle / JavaScript.SDK

Dolittle JavaScript SDK
https://dolittle.io
MIT License
5 stars 2 forks source link

Bind IAggregateOg<> in the ServiceProvider #109

Closed jakhog closed 2 years ago

jakhog commented 2 years ago

Summary

Bind the IAggregateOf<...> into the DI container for the registered aggregate root types. Unfortunately the generics disappear when compiled to JavaScript, so the bindings are just with string identifiers - so you need to do something like services.get('IAggregateOf<Kitchen>') as IAggregateOf<Kitchen>.