private void SaveSettings()
 {
     // settings storage is dependent upon a stable Guid for MyPlugin; see:#generate_new_guid_plugin
     using (var settings = PluginUtils.GetSettingsStore <MyPlugin>(_linkId))
     {
         settings["url"]    = _url;
         settings["option"] = _option.ToString();
     }
 }
 private void SaveSettings()
 {
     // load plugin factory settings (global to all instances of this plugin)
     // settings storage is dependent upon a stable Guid for MyPluginFactory; see:#generate_new_guid_factory
     using (var factorySettings = PluginUtils.GetSettingsStore <MyPluginFactory>())
     {
         factorySettings["should_do_something"] = ShouldDoSomething.ToString();
     }
 }
 private void LoadSettings()
 {
     // load plugin factory settings (global to all instances of this plugin)
     // settings storage is dependent upon a stable Guid for MyPluginFactory; see:#generate_new_guid_factory
     using (var factorySettings = PluginUtils.GetSettingsStore <MyPluginFactory>())
     {
         ShouldDoSomething = factorySettings.GetValueOrDefaultAs <bool>("should_do_something", true);
     }
 }
 private void LoadSettings()
 {
     // settings storage is dependent upon GuidAttribute for MyPlugin; see:#generate_new_guid_plugin
     using (var settings = PluginUtils.GetSettingsStore <MyPlugin>(_linkId))
     {
         // Read saved value, or use default
         _url    = settings.GetValueOrDefault("url", "http://localhost/plugin.aspx?param=$(Value)");
         _option = settings.GetValueOrDefaultAs <EnumSetting>("option", EnumSetting.OptionA);
     }
 }