/// <summary> /// Get the instance of StaticDataEndpoints which contains all the static Endpoints as Properties. /// </summary> /// <returns>The instance of StaticDataEndpoint.</returns> public static StaticDataEndpoints GetInstance(bool useCache = true) { if (_instance == null || Requesters.StaticApiRequester == null) { _instance = new StaticDataEndpoints(useCache); } return(_instance); }
/// <summary> /// Get the instance of StaticDataEndpoints which contains all the static Endpoints as Properties. /// </summary> /// <param name="apiKey">The api key.</param> /// <returns>The instance of StaticDataEndpoint.</returns> public static StaticDataEndpoints GetInstance(string apiKey, bool useCache = true) { if (instance == null || Requesters.StaticApiRequester == null || apiKey != Requesters.StaticApiRequester.ApiKey) { instance = new StaticDataEndpoints(apiKey, useCache); } return(instance); }