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
There is no direct replacement for the `ResetAll` method in the MVVM Toolkit. In the context of MvvmLight, this method is used to reset the default `IMessenger` instance by calling the static `Reset` method.
742
+
The functionality of `ResetAll()` can be achieved with the MVVM Toolkit's `Reset()` method.
743
743
744
-
Any calls to the `ResetAll()` method can be removed.
744
+
Unlike MvvmLight's implementation which nulls out the instance, the MVVM Toolkit clears the registered maps.
There is no direct replacement for the `OverrideDefault(IMessenger)` method in the MVVM Toolkit.
759
759
760
-
Any calls to the `Messenger.OverrideDefault(IMessenger)` method can be removed.
760
+
To use a custom implementation of the `IMessenger`, either registered the custom implementation in the service registrations for dependency injection or manually contruct a static instance and pass this where required.
761
761
762
762
```csharp
763
763
// MvvmLight
764
764
Messenger.OverrideDefault(newMessenger());
765
765
766
766
// Toolkit.Mvvm
767
-
// No direct replacement, remove
767
+
// No direct replacement
768
768
```
769
769
770
770
#### Reset ()
771
771
772
-
There is no direct replacement for the `Reset` method in the MVVM Toolkit. In the context of MvvmLight, this static method is used to reset the default `IMessenger` instance.
772
+
There is no direct replacement for the static `Reset` method in the MVVM Toolkit.
773
773
774
-
Any calls to the `Messenger.Reset()` method can be removed.
774
+
The same functionality can be achieved by calling the `Reset` method of the static `Default` instance of the `Messenger` class.
0 commit comments