You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Based on the naming/folder structure, automatically register dependencies
Describe the solution you'd like
If I have a view called HomePage and a viewmodel called HomeViewModel (or HomePageViewModel) then both of these dependencies should be automatically registered).
There should be a default schema/configuration for registering dependencies named in a certain way as transient dependencies (should services be auto-registered as singletons?). It should be possible to provide a configuration the BurkusMvvmBuilder to provide custom naming rules and overrides for dependency registration.
Auto-registration should be opt-in as it could lead to unexpected behaviour if enabled by default. Should reflection be used? Is it possible to use source generators for this?
Describe alternatives you've considered
Manual registration of dependencies.
Proposed APIs
If possible, try to propose how the API might look. For example:
Is your feature request related to a problem? Please describe.
Based on the naming/folder structure, automatically register dependencies
Describe the solution you'd like
If I have a view called
HomePage
and a viewmodel calledHomeViewModel
(orHomePageViewModel
) then both of these dependencies should be automatically registered).There should be a default schema/configuration for registering dependencies named in a certain way as transient dependencies (should services be auto-registered as singletons?). It should be possible to provide a configuration the BurkusMvvmBuilder to provide custom naming rules and overrides for dependency registration.
Auto-registration should be opt-in as it could lead to unexpected behaviour if enabled by default. Should reflection be used? Is it possible to use source generators for this?
Describe alternatives you've considered
Manual registration of dependencies.
Proposed APIs
If possible, try to propose how the API might look. For example:
Additional context
N/A
The text was updated successfully, but these errors were encountered: