コード例 #1
0
        public ProjectsController(IGithubRepo <Project> repository, IMapper mapper)
        {
            _repository = repository;
            _mapper     = mapper;

            RecurringJob.AddOrUpdate(() => this.BackgroundPopulationDb(), Cron.Hourly);
        }
コード例 #2
0
 /// <summary>
 /// Constructor de la clase principal de trifenix-versions.
 /// </summary>
 /// <param name="githubRepo">repositorio de github de las versiones</param>
 /// <param name="branch">rama de la que se quiere obtener la versión</param>
 /// <param name="build">build de la integración</param>
 /// <param name="token">token de github</param>
 /// <param name="packageName">Nombre del paquete a actualizar</param>
 /// <param name="packageType">tipo de paquete json o nuget</param>
 /// <param name="releaseDependant">define si la versión es para un nuevo release</param>
 /// <param name="repo">Interface para operaciones de github</param>
 /// <param name="repoVersion">Interface para operaciones de github tipadas</param>
 /// <param name="defaultVersions">Interface para operaciones de github tipadas</param>
 public VersionSpec(string githubRepo, string branch, string build, string token, string packageName, PackageType packageType, bool releaseDependant, string user, string email, IGithubRepo repo, IGithubRepo <VersionStructure> repoVersion, List <VersionStructure> defaultVersions)
 {
     this.githubRepo       = githubRepo;
     this.branch           = branch;
     this.build            = build;
     this.token            = token;
     this.packageName      = packageName;
     this.packageType      = packageType;
     this.releaseDependant = releaseDependant;
     this.repo             = repo;
     this.repoVersion      = repoVersion;
     this.defaultVersions  = defaultVersions;
     this.mail             = email;
     this.userGithub       = user;
     utils = new StringUtils();
 }
コード例 #3
0
 public GithubUserController(IGithubRepo repository)
 {
     _repository = repository;
 }
コード例 #4
0
 public GithubListController(IGithubRepo repository, UserContext context)
 {
     _repository = repository;
     _context    = context;
 }