private static void GetSettings() { _wakaTimeConfigFile.Read(); ApiKey = _wakaTimeConfigFile.ApiKey; Debug = _wakaTimeConfigFile.Debug; Proxy = _wakaTimeConfigFile.Proxy; }
private const int HeartbeatFrequency = 2; // minutes #endregion #region Startup/Cleanup protected override void Initialize() { base.Initialize(); AddSkipLoading(); // Load config file Config = new ConfigFile(); Config.Read(); ObjDte = (DTE)GetService(typeof(DTE)); _dteEvents = ObjDte.Events.DTEEvents; _dteEvents.OnStartupComplete += OnOnStartupComplete; // Try force initializing in brackground Logger.Debug("Initializing in background thread."); Task.Run(() => { InitializeAsync(); }); }
protected override void Initialize() { base.Initialize(); // Load config file Config = new ConfigFile(); Config.Read(); ObjDte = (DTE)GetService(typeof(DTE)); _dteEvents = ObjDte.Events.DTEEvents; _isAsyncLoadSupported = this.IsAsyncPackageSupported(); // Only perform initialization if async package framework not supported if (!_isAsyncLoadSupported) { // Try force initializing in brackground Logger.Debug("Initializing in background thread."); Task.Run(() => { InitializeAsync(); }); } }
private static void SettingsFormOnConfigSaved(object sender, EventArgs eventArgs) { Config.Read(); }
private static void SettingsFormOnConfigSaved(object sender, EventArgs eventArgs) { config.Read(); Dependencies.PythonUserDefinedLocation = config.PythonBinaryLocation; }
static WakaTime() { config = new ConfigFile(); config.Read(); Dependencies.PythonUserDefinedLocation = config.PythonBinaryLocation; }