Beispiel #1
0
 public void Dispose()
 {
     ServiceLocator.Reset();
     StaticManagersUtils.ResetStaticManagers();
     Monitor.Exit(syncObj);
 }
Beispiel #2
0
 public FakeServiceProviderWrapper(IServiceProvider provider)
 {
     Monitor.Enter(syncObj);
     StaticManagersUtils.ResetStaticManagers();
     ServiceLocator.SetServiceProvider(provider);
 }