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>.
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 likeservices.get('IAggregateOf<Kitchen>') as IAggregateOf<Kitchen>
.