Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AgentWrapper"/> class.
 /// </summary>
 /// <param name="agentHost">The agent host.</param>
 /// <param name="testRunner">The test runner.</param>
 /// <param name="updateReceiver">The update receiver.</param>
 /// <param name="versionProvider">The version provider.</param>
 public AgentWrapper(AgentHost agentHost, Common.Agent.Agent testRunner, TestUpdateReceiver updateReceiver, TestingVersionProvider versionProvider)
 {
     this.versionProvider = versionProvider;
     AgentHost = agentHost;
     UpdateReceiver = updateReceiver;
     TestRunner = agentHost != null ? agentHost.TestRunner : testRunner;
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of an agent program
 /// </summary>
 /// <param name="agentHost">The agent host.</param>
 /// <param name="bootstrapperParameters">The bootstrapper parameters.</param>
 /// <param name="updatesMonitor">The updates availability monitor.</param>
 /// <param name="exceptionCatcher">The exception catcher.</param>
 /// <param name="instanceTracker">The instance tracker.</param>
 /// <param name="log">The log.</param>
 public AgentProgram(AgentHost agentHost, 
     BootstrapperParameters bootstrapperParameters,
     UpdatesMonitor updatesMonitor, 
     ExceptionCatcher exceptionCatcher,
     IInstanceTracker instanceTracker,
     ILog log)
     : base(updatesMonitor, exceptionCatcher, log, bootstrapperParameters)
 {
     this.instanceTracker = instanceTracker;
     AgentHost = agentHost;
 }