/// <summary> /// Initializes paths, static objects, check and load datafiles, etc. /// </summary> /// <remarks>May be called more than once without causing redundant operations to occur.</remarks> public static void Initialize() { if (s_initialized) return; s_initialized = true; Trace("begin"); // Network monitoring (connection availability changes) NetworkMonitor.Initialize(); //Set swagger global config Configuration.Default = new Configuration { BasePath = "https://esi.tech.ccp.is/", UserAgent = "EveMon - Development", }; // APIMethods collection initialization (always before members instatiation) APIMethods.Initialize(); // Members instantiations APIProviders = new GlobalAPIProviderCollection(); MonitoredCharacters = new GlobalMonitoredCharacterCollection(); CharacterIdentities = new GlobalCharacterIdentityCollection(); Notifications = new GlobalNotificationCollection(); Characters = new GlobalCharacterCollection(); Datafiles = new GlobalDatafileCollection(); APIKeys = new GlobalAPIKeyCollection(); EVEServer = new EveServer(); Trace("done"); }
/// <summary> /// Initializes paths, static objects, check and load datafiles, etc. /// </summary> /// <remarks>May be called more than once without causing redundant operations to occur.</remarks> public static void Initialize() { if (s_initialized) { return; } s_initialized = true; Trace("begin"); // Network monitoring (connection availability changes) NetworkMonitor.Initialize(); // APIMethods collection initialization (always before members instatiation) APIMethods.Initialize(); // Members instantiations APIProviders = new GlobalAPIProviderCollection(); MonitoredCharacters = new GlobalMonitoredCharacterCollection(); CharacterIdentities = new GlobalCharacterIdentityCollection(); Notifications = new GlobalNotificationCollection(); Characters = new GlobalCharacterCollection(); Datafiles = new GlobalDatafileCollection(); APIKeys = new GlobalAPIKeyCollection(); EVEServer = new EveServer(); Trace("done"); }