コード例 #1
0
ファイル: Feature.cs プロジェクト: Itsey/Plisky.Plumbing
 public static void UseHub(ConfigHub newHubToUse)
 {
     if (newHubToUse == null)
     {
         throw new ArgumentNullException(nameof(newHubToUse));
     }
     configResolver = newHubToUse;
 }
コード例 #2
0
 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
ファイル: Feature.cs プロジェクト: Itsey/Plisky.Plumbing
 public static void Reset()
 {
     resolver       = null;
     configResolver = ConfigHub.Current;
 }
コード例 #5
0
 public void InjectHub(ConfigHub h)
 {
     throw new NotImplementedException();
 }