Esempio n. 1
0
 public static void UseHub(ConfigHub newHubToUse)
 {
     if (newHubToUse == null)
     {
         throw new ArgumentNullException(nameof(newHubToUse));
     }
     configResolver = newHubToUse;
 }
 public void InjectHub(ConfigHub h)
 {
     injectedHub = h;
 }
Esempio n. 3
0
 /// <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;
     }
 }
Esempio n. 4
0
 public static void Reset()
 {
     resolver       = null;
     configResolver = ConfigHub.Current;
 }
Esempio n. 5
0
 public void InjectHub(ConfigHub h)
 {
     throw new NotImplementedException();
 }