Exemplo n.º 1
0
        public StartAgentService(IOptions <StartAgentServiceConfig> configuration, ILoggerFactory loggerFactory, AgentsService agentsService)
        {
            this.loggerFactory = loggerFactory;
            this.agentsService = agentsService;
            logger             = loggerFactory.CreateLogger <StartAgentService>();

            this.configuration = configuration;
        }
Exemplo n.º 2
0
 public AgentsController(IOptions <JwtIssuerOptions> jwtOptions, IOptions <AppSettings> appSettings)
 {
     _appSettings        = appSettings;
     _jwtOptions         = jwtOptions.Value;
     _serializerSettings = new JsonSerializerSettings
     {
         Formatting = Formatting.Indented
     };
     _agentsService = new AgentsService(appSettings.Value);
 }
Exemplo n.º 3
0
 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>();
 }
Exemplo n.º 4
0
 public AgentsController(AgentsService agentService)
 {
     _agentService = agentService;
 }