示例#1
0
        public StartAgentService(IOptions <StartAgentServiceConfig> configuration, ILoggerFactory loggerFactory, AgentsService agentsService)
        {
            this.loggerFactory = loggerFactory;
            this.agentsService = agentsService;
            logger             = loggerFactory.CreateLogger <StartAgentService>();

            this.configuration = configuration;
        }
示例#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);
 }
示例#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>();
 }
示例#4
0
 public AgentsController(AgentsService agentService)
 {
     _agentService = agentService;
 }