public GitLabElasticService(IOptionsMonitor <GitLabConfig> gitLabConfig, IOptionsMonitor <ElasticConfig> elasticConfig, IGitLabService gitLabService, ILogger <GitLabElasticService> logger)
 {
     _gitLabConfig  = gitLabConfig.CurrentValue;
     _elasticConfig = elasticConfig.CurrentValue;
     _gitLabService = gitLabService;
     _logger        = logger;
 }
示例#2
0
        public GitLabHealthCheck(IGitLabService service)
        {
            if (service == null)
            {
                throw new ArgumentNullException(nameof(service));
            }

            this.service = service;
        }
示例#3
0
        public void TearDown()
        {
            _gitLabService = Get <IGitLabService>();

            if (string.IsNullOrEmpty(_result.Group.Id))
            {
                var result = _gitLabService.DeleteGroup(_result.Group.Id);
                result.Wait();
            }
        }
 public ProjectsController(IGitLabService gitLabService,
                           IMimeMappingService mimeMappingService)
 {
     _gitLabService      = gitLabService;
     _mimeMappingService = mimeMappingService;
 }
 public GetProjectByIdQuery(IGitLabService gitLabService)
 {
     _gitLabService = gitLabService;
 }
示例#6
0
 /// <summary>
 /// Контроллер для работы с данными из GitLab
 /// </summary>
 public GitLabController(IGitLabService gitLabService, IMapper mapper, IMemoryCache cache)
 {
     _gitLabService = gitLabService;
     _cache         = cache;
     _mapper        = mapper;
 }
 public CreateGitLabGroupCommand(IGitLabService gitLabService)
 {
     _gitLabService = gitLabService;
 }
示例#8
0
 public void Setup()
 {
     Sut = Get <IGitLabService>();
 }
示例#9
0
 /// <summary>
 /// Контроллер для работы с данными из GitLab
 /// </summary>
 public GitLabController(IGitLabService gitLabService, GitLabElasticService gitLabElasticService, IMapper mapper)
 {
     _gitLabService        = gitLabService;
     _gitLabElasticService = gitLabElasticService;
     _mapper = mapper;
 }
 public CreateGitLabProjectCommand(IGitLabService gitLabService)
 {
     _gitLabService = gitLabService;
 }