public static void UseHub(ConfigHub newHubToUse) { if (newHubToUse == null) { throw new ArgumentNullException(nameof(newHubToUse)); } configResolver = newHubToUse; }
public void InjectHub(ConfigHub h) { injectedHub = h; }
/// <summary> /// Resets all of the hub for the ConfigHub.Current instance. Not normally required but useful for unit testing where components /// use the Current config hub rather than a passed instance. /// </summary> public static void ResetCurrentConfigHub() { lock (lockme) { instance = null; } }
public static void Reset() { resolver = null; configResolver = ConfigHub.Current; }
public void InjectHub(ConfigHub h) { throw new NotImplementedException(); }