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
I have two concrete implementations for an interface. One is these is always used except for when a Demo mode is enabled. How can I change the implementation at run time when this happens? I don't see a Remove or Replace function on the container.
Thanks
The text was updated successfully, but these errors were encountered:
Registrations overwrite the previous one for the same type. Depending on the lifetime of your objects, and whether the "demo" mode can be toggled at runtime, you may be better with some sort of proxy object though.
Hi,
I have two concrete implementations for an interface. One is these is always used except for when a Demo mode is enabled. How can I change the implementation at run time when this happens? I don't see a Remove or Replace function on the container.
Thanks
The text was updated successfully, but these errors were encountered: