Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork1.1k
Disposal of AutoSuspendHelper Instance#4012
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Hello all, Thank you for your continued effort in developing and maintaining this MVVM framework. I have a query regarding the ReactiveUI data persistence functionality, which is described in the guidebook onthis page. The context of my query is my FOSS app DateToday, which you can find atthis GitHub repository. This app is built with Avalonia and ReactiveUI. Avalonia also provides a brief guide to this data persistence functionalityhere. So, I have followed the instructions available in both guides to successfully implement data persistence in my app. One facet of this functionality is AutoSuspendHelper class. I have instantiated this class inside my Application (see: App.axaml.cs, line num. 91). The compiler raises warning CA2000: 'Dispose objects before losing scope'. The guides I referenced earlier do not address how to handle the disposal of objects of this class. I would like to resolve this warning. I have taken the following steps to attempt to do so:
Please can you confirm whether it is actually necessary to dispose of this object, and if so, how and when? Let me know if you would like me to provide additional information. Kind regards, |
BetaWas this translation helpful?Give feedback.




