private static IStorageService _storageService;
[Import]
public IStorageService StorageServiceImport { set
{ _storageService = value; } }
public static IStorageService StorageService { get { return
_storageService; } }
In the latest version of Seesmic Desktop, when hit up
MyPlugin.StorageService, it's always null. This is causing my plugin
to fail. Why is this now returning null in the latest version of
Seesmic Desktop when, in previous versions, it did not? Do I need to
change my plugin to access this information in a different way? If so,
how? I've tried a couple dozen ways with no success.
Thanks!
StorageService.GetValue<bool>(...)
It doesn't even get that far to the "GetValue" method because, per the
code below, the StorageService returns null.... but all I'm doing is
getting the MEF'd imported StorageService. The code below came from
this message board as a way to save settings for a plugin.
Again, I changed nothing in my plugin.... the recent Seesmic Desktop
update broke it and now I'm trying to fix it.
I'm adjusting my code but it's pretty crappy that I now have to
manually update my plugin XAP file to get Seesmic Desktop working or
else it fails completely.... which means I can't even give users the
opportunity to update the plugin via the Seesmic Desktop UI.... either
they copy in the new XAP file manually or Seesmic Desktop doesn't work
at all.