Пример #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;
 }
Пример #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;
     }
 }
Пример #4
0
 public static void Reset()
 {
     resolver       = null;
     configResolver = ConfigHub.Current;
 }
Пример #5
0
 public void InjectHub(ConfigHub h)
 {
     throw new NotImplementedException();
 }