Exemplo 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;
 }
Exemplo 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;
     }
 }
Exemplo n.º 4
0
 public static void Reset()
 {
     resolver       = null;
     configResolver = ConfigHub.Current;
 }
Exemplo n.º 5
0
 public void InjectHub(ConfigHub h)
 {
     throw new NotImplementedException();
 }