IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
The DomainManager class handles the creation and unloading of domains as needed and keeps track of all existing domains. More...
Classes | |
class | DomainUnloader |
class | TargetFrameworkAgent |
Public Member Functions | |
AppDomain | CreateDomain (TestPackage package) |
Construct an application domain for running a test package More... | |
void | Unload (AppDomain domain) |
void | DeleteShadowCopyPath () |
override void | StartService () |
Initialize the Service More... | |
![]() | |
virtual void | StopService () |
Do any cleanup needed before terminating the service More... | |
void | Dispose () |
Static Public Member Functions | |
static string | GetApplicationBase (TestPackage package) |
Figure out the ApplicationBase for a package More... | |
static string | GetConfigFile (string appBase, TestPackage package) |
static string | GetCommonAppBase (IList< TestPackage > packages) |
static string | GetCommonAppBase (IList< string > assemblies) |
static string | GetPrivateBinPath (string basePath, string fileName) |
static string | GetPrivateBinPath (string appBase, TestPackage package) |
static string | GetPrivateBinPath (string basePath, IList< TestPackage > packages) |
static string | GetPrivateBinPath (string basePath, IList< string > assemblies) |
Private Member Functions | |
AppDomainSetup | CreateAppDomainSetup (TestPackage package) |
string | GetCachePath () |
Get the location for caching and delete any old cache info More... | |
bool | IsTestDomain (AppDomain domain) |
Static Private Member Functions | |
static bool | IsExecutable (string fileName) |
static void | DeleteCacheDir (DirectoryInfo cacheDir) |
Helper method to delete the cache dir. This method deals with a bug that occurs when files are marked read-only and deletes each file separately in order to give better exception information when problems occur. More... | |
static void | SetTargetFramework (string assemblyPath, AppDomainSetup setup) |
Private Attributes | |
ISettings | _settingsService |
string | _shadowCopyPath = Path.Combine(NUnitConfiguration.NUnitBinDirectory, "ShadowCopyCache") |
Static Private Attributes | |
static Logger | log = InternalTrace.GetLogger(typeof(DomainManager)) |
Additional Inherited Members | |
![]() | |
virtual void | Dispose (bool disposing) |
![]() | |
bool | _disposed = false |
![]() | |
IServiceLocator | ServiceContext [get, set] |
The ServiceContext More... | |
ServiceStatus | Status [get, protected set] |
Gets the ServiceStatus of this service More... | |
![]() | |
IServiceLocator | ServiceContext [get, set] |
The ServiceContext More... | |
ServiceStatus | Status [get] |
Gets the ServiceStatus of this service More... | |
The DomainManager class handles the creation and unloading of domains as needed and keeps track of all existing domains.
|
inline |
Construct an application domain for running a test package
package | The TestPackage to be run |
Referenced by NUnit.Engine.Services.Tests.DomainManagerTests.CanCreateDomain(), NUnit.Engine.Services.Tests.DomainManagerTests.CanCreateDomainWithApplicationBaseSpecified(), NUnit.Engine.Services.Tests.DomainManagerTests.CanUnloadDomain(), NUnit.Engine.Runners.TestDomainRunner.LoadPackage(), and NUnit.Engine.Services.Tests.DomainManagerTests.UnloadingTwiceDoesNoHarm().
|
inlineprivate |
References NUnit.Engine.TestPackage.FullName, and NUnit.Engine.TestPackage.SubPackages.
|
inline |
|
inlinestatic |
Figure out the ApplicationBase for a package
package | The package |
References NUnit.Common.Guard.ArgumentNotNull(), NUnit.Common.PackageSettings.BasePath, NUnit.Engine.TestPackage.FullName, and NUnit.Engine.TestPackage.SubPackages.
Referenced by NUnit.Engine.Services.Tests.DomainManagerStaticTests.ApplicationBaseTests().
|
inlinestatic |
References NUnit.Common.Guard.ArgumentNotNull(), NUnit.Common.Guard.ArgumentNotNullOrEmpty(), NUnit.Common.PackageSettings.ConfigurationFile, NUnit.Engine.TestPackage.FullName, and NUnit.Engine.TestPackage.SubPackages.
Referenced by NUnit.Engine.Services.Tests.DomainManagerStaticTests.ConfigFileTests().
|
inlinestaticprivate |
|
inlineprivate |
Get the location for caching and delete any old cache info
|
inlinestaticprivate |
Helper method to delete the cache dir. This method deals with a bug that occurs when files are marked read-only and deletes each file separately in order to give better exception information when problems occur.
TODO: This entire method is problematic. Should we be doing it?
cacheDir |
References NUnit.Common.Debug.
|
inlineprivate |
|
inlinestatic |
Referenced by NUnit.Engine.Services.Tests.DomainManagerStaticTests.GetCommonAppBase_OneElement(), NUnit.Engine.Services.Tests.DomainManagerStaticTests.GetCommonAppBase_ThreeElements_DifferentDirectories(), NUnit.Engine.Services.Tests.DomainManagerStaticTests.GetCommonAppBase_TwoElements_DifferentDirectories(), and NUnit.Engine.Services.Tests.DomainManagerStaticTests.GetCommonAppBase_TwoElements_SameDirectory().
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
References NUnit.Engine.Internal.PathUtils.RelativePath().
|
inline |
|
inlinevirtual |
Initialize the Service
Reimplemented from NUnit.Engine.Services.Service.
References NUnit.Engine.ServiceContext.GetService(), and NUnit.Engine.ISettings.GetSetting().
|
inlinestaticprivate |
|
staticprivate |
|
private |
|
private |