How to remove Storage Handler

May 5, 2011 at 3:18 AM

Hi there,

Using the latest source code, I don't see any way to remove the storage handler for the property I have registered for tombstoning. Right now only way is to reset the value before leaving the page. For example, I have a view model with property CustomerId which I have registed using Property(x=> x.CustomerId).... in CustomerViewModelStorage class by overriding configure method. Now, let say CustomerId is 5 when user exit from the current page, when user comes back to this page again then StroageHandler is setting CustomerId back to 5. Is there any way to unregister the handler once we are done with the page?

Thanks,
Binoy

Coordinator
May 5, 2011 at 1:06 PM

Ok. I think that was a bug in the storage instructions related to the fact that they were not deleting the key after a restore. I committed the fix. Get the latest and let me know if that fixes this issue.

May 6, 2011 at 2:32 AM

Alright, tested with 4299150ba59e source base, and this looks ok,

Thanks,
Binoy