예제 #1
0
 public RemoteDeploymentPackageAgent(IHubContext <AgentHub> agentHub, AgentsData agentsData, AgentId agentId, ILogger logger)
 {
     _agentHub   = agentHub;
     _agentsData = agentsData;
     AgentId     = agentId;
     _logger     = logger;
 }
예제 #2
0
        public override void OnApplyTemplate()
        {
            // Create an AgentCompactPanel with mock data:
            AgentCompactPanel acp = new AgentCompactPanel(AgentsData.GetAgentsData());              // TODO: GetAgentCompactBindingSource

            ContentGrid.Children.Add(acp);

            this.DataContext = AgentsData.GetAgentCompactBindingSource();
        }
예제 #3
0
 public DeploymentWorkerService(
     ConfigurationInstanceHolder configurationInstanceHolder,
     ILogger logger,
     IMediator mediator,
     AgentsData agents,
     TimeoutHelper timeoutHelper)
 {
     _configurationInstanceHolder = configurationInstanceHolder;
     _logger        = logger;
     _mediator      = mediator;
     _agents        = agents;
     _timeoutHelper = timeoutHelper;
     _tasks         = new Dictionary <DeploymentTargetId, Task>();
     _cancellations = new Dictionary <DeploymentTargetId, CancellationTokenSource>();
 }
예제 #4
0
 public RemoteAgentService(IHubContext <AgentHub> agentHub, AgentsData agents, ILogger logger)
 {
     _agentHub = agentHub;
     _agents   = agents;
     _logger   = logger;
 }
예제 #5
0
 public AgentsController(AgentsData agentsData) => _agentsData = agentsData;
예제 #6
0
 public AgentStatusHandler(AgentsData agents) => _agents = agents;
예제 #7
0
 public UnknownAgentHandler(AgentsData agents) => _agents = agents;