public StartAgentService(IOptions <StartAgentServiceConfig> configuration, ILoggerFactory loggerFactory, AgentsService agentsService) { this.loggerFactory = loggerFactory; this.agentsService = agentsService; logger = loggerFactory.CreateLogger <StartAgentService>(); this.configuration = configuration; }
public AgentsController(IOptions <JwtIssuerOptions> jwtOptions, IOptions <AppSettings> appSettings) { _appSettings = appSettings; _jwtOptions = jwtOptions.Value; _serializerSettings = new JsonSerializerSettings { Formatting = Formatting.Indented }; _agentsService = new AgentsService(appSettings.Value); }
public TasksService(ILogger <TasksService> logger, PriorityQueue <BuildTask> queue, AgentsService agentsService, ICurrentTasksRepository currentTasksRepository, IServiceScopeFactory serviceScopeFactory) { this.logger = logger; this.queue = queue; this.agentsService = agentsService; this.currentTasksRepository = currentTasksRepository; this.serviceScopeFactory = serviceScopeFactory; scope = serviceScopeFactory.CreateScope(); buildTasksService = scope.ServiceProvider.GetService <BuildTasksService>(); }
public AgentsController(AgentsService agentService) { _agentService = agentService; }