private static void CreateConfluenceConntector() { if (_confluenceConnector == null) { if (_config.Url.Contains("soap-axis")) { _confluenceConnector = new ConfluenceConnector(_config.Url, _config.Timeout); } else { _confluenceConnector = new ConfluenceConnector(_config.Url + ConfluenceConfiguration.DEFAULT_POSTFIX2, _config.Timeout); } } }
public ConfluenceTreePicker(ConfluenceUpload confluenceUpload) { this.confluenceConnector = ConfluencePlugin.ConfluenceConnector; this.confluenceUpload = confluenceUpload; InitializeComponent(); }
/// <summary> /// Implementation of the IPlugin.Configure /// </summary> public virtual void Configure() { ConfluenceConfiguration clonedConfig = _config.Clone(); ConfluenceConfigurationForm configForm = new ConfluenceConfigurationForm(clonedConfig); string url = _config.Url; Nullable<bool> dialogResult = configForm.ShowDialog(); if (dialogResult.HasValue && dialogResult.Value) { // copy the new object to the old... clonedConfig.CloneTo(_config); IniConfig.Save(); if (_confluenceConnector != null) { if (!url.Equals(_config.Url)) { if (_confluenceConnector.isLoggedIn) { _confluenceConnector.logout(); } _confluenceConnector = null; } } } }
public virtual void Shutdown() { LOG.Debug("Confluence Plugin shutdown."); if (_confluenceConnector != null) { _confluenceConnector.logout(); _confluenceConnector = null; } }