示例#1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GeneralProgram"/> class.
 /// </summary>
 /// <param name="updatesMonitor">The updates monitor.</param>
 /// <param name="exceptionCatcher">The exception catcher.</param>
 /// <param name="log">The log.</param>
 /// <param name="bootstrapperParameters"> </param>
 protected GeneralProgram(UpdatesMonitor updatesMonitor, ExceptionCatcher exceptionCatcher, ILog log, BootstrapperParameters bootstrapperParameters)
 {
     this.updatesMonitor = updatesMonitor;
     this.exceptionCatcher = exceptionCatcher;
     this.log = log;
     this.bootstrapperParameters = bootstrapperParameters;
 }
示例#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;
 }
示例#3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ServerProgram"/> class.
 /// </summary>
 /// <param name="serverHost">The server host.</param>
 /// <param name="bootstrapperParameters">The bootstrapper parameters.</param>
 /// <param name="updatesMonitor">The updates monitor.</param>
 /// <param name="log">The log.</param>
 /// <param name="exceptionCatcher">The exception catcher.</param>
 public ServerProgram(ServerHost serverHost, BootstrapperParameters bootstrapperParameters,
                      UpdatesMonitor updatesMonitor, ILog log, ExceptionCatcher exceptionCatcher)
     : base(updatesMonitor, exceptionCatcher, log, bootstrapperParameters)
 {
     this.serverHost = serverHost;
 }