IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
The TestAgency class provides RemoteTestAgents on request and tracks their status. Agents are wrapped in an instance of the TestAgent class. Multiple agent types are supported but only one, ProcessAgent is implemented at this time. More...
Classes | |
class | AgentDataBase |
A simple class that tracks data about this agencies active and available agents More... | |
class | AgentRecord |
Public Member Functions | |
TestAgency () | |
TestAgency (string uri, int port) | |
void | Register (ITestAgent agent) |
Registers an agent with an agency More... | |
void | ReportStatus (Guid agentId, AgentStatus status) |
ITestAgent | GetAgent (TestPackage package, int waitTime) |
void | ReleaseAgent (ITestAgent agent) |
void | StopService () |
Do any cleanup needed before terminating the service More... | |
void | StartService () |
Initialize the Service More... | |
Properties | |
IServiceLocator | ServiceContext [get, set] |
ServiceStatus | Status [get, private set] |
![]() | |
IServiceLocator | ServiceContext [get, set] |
The ServiceContext More... | |
ServiceStatus | Status [get] |
Gets the ServiceStatus of this service More... | |
Private Member Functions | |
Guid | LaunchAgentProcess (TestPackage package) |
ITestAgent | CreateRemoteAgent (TestPackage package, int waitTime) |
Static Private Member Functions | |
static string | GetNUnitBinDirectory (Version v) |
Return the NUnit Bin Directory for a particular runtime version, or null if it's not installed. For normal installations, there are only 1.1 and 2.0 directories. However, this method accommodates 3.5 and 4.0 directories for the benefit of NUnit developers using those runtimes. More... | |
static string | GetTestAgentExePath (Version v, bool requires32Bit) |
Private Attributes | |
AgentDataBase | _agentData = new AgentDataBase() |
IRuntimeFrameworkService | _runtimeService |
Static Private Attributes | |
static Logger | log = InternalTrace.GetLogger(typeof(TestAgency)) |
Additional Inherited Members | |
![]() | |
ServerBase () | |
ServerBase (string uri, int port) | |
Constructor used to provide More... | |
![]() | |
string | uri |
int | port |
The TestAgency class provides RemoteTestAgents on request and tracks their status. Agents are wrapped in an instance of the TestAgent class. Multiple agent types are supported but only one, ProcessAgent is implemented at this time.
|
inline |
|
inline |
|
inline |
Registers an agent with an agency
agent |
Implements NUnit.Engine.ITestAgency.
References NUnit.Engine.Services.TestAgency.AgentRecord.Agent, and NUnit.Engine.ITestAgent.Id.
|
inline |
|
inline |
Referenced by NUnit.Engine.Runners.ProcessRunner.LoadPackage().
|
inline |
|
inlineprivate |
References NUnit.Engine.Services.TestAgency.AgentDataBase.Add(), NUnit.Engine.RuntimeFramework.ClrVersion, NUnit.Engine.RuntimeFramework.CurrentFramework, NUnit.Common.Logger.Debug(), NUnit.Common.PackageSettings.DebugAgent, NUnit.Common.PackageSettings.DebugTests, NUnit.Engine.RuntimeFramework.GetBestAvailableFramework(), NUnit.Common.Logger.Info(), NUnit.Engine.RuntimeFramework.IsAvailable, NUnit.Engine.Internal.NUnitConfiguration.MonoExePath, NUnit.Engine.RuntimeFramework.Parse(), NUnit.Common.PackageSettings.RunAsX86, NUnit.Engine.RuntimeFramework.Runtime, NUnit.Common.PackageSettings.RuntimeFramework, and NUnit.Engine.IRuntimeFrameworkService.SelectRuntimeFramework().
|
inlineprivate |
References NUnit.Common.Logger.Debug().
|
inlinestaticprivate |
Return the NUnit Bin Directory for a particular runtime version, or null if it's not installed. For normal installations, there are only 1.1 and 2.0 directories. However, this method accommodates 3.5 and 4.0 directories for the benefit of NUnit developers using those runtimes.
References NUnit.Engine.Internal.NUnitConfiguration.NUnitBinDirectory.
|
inlinestaticprivate |
|
inline |
Do any cleanup needed before terminating the service
Implements NUnit.Engine.IService.
|
inline |
Initialize the Service
Implements NUnit.Engine.IService.
References NUnit.Engine.ServiceContext.GetService().
|
staticprivate |
|
private |
|
private |
|
getset |
|
getprivate set |