Improve Dependency Injection use cases
zhukovdm opened this issue · comments
Dependency Injection can be more general, than today's implementation. In particular, we may get rid of TContext and avoid creating explicit handlers as the one below.
smartwalk/app/backend/SmartWalk.Api/Controllers/AdviceController.cs
Lines 48 to 49 in 86172c1
Perhaps a good direction is to separate SearchController into smaller different controllers so that we can inject an instance of a handler.
An example of multi-level dependency injection is at https://github.com/zhukovdm/exrates/.