Ejemplo n.º 1
0
 public TelegramResponseHandler(TelegramBotClient client, IJenkinsService jenkinsService, IJobQueue jobQueue, IList <MenuItem> menu, IList <long> allowedChatIds, string jenkinsProtocol, string jenkinsFqdn)
 {
     _client          = client ?? throw new ArgumentNullException(nameof(client));
     _jenkinsService  = jenkinsService ?? throw new ArgumentNullException(nameof(jenkinsService));
     _menu            = menu ?? throw new ArgumentNullException(nameof(menu));
     _jenkinsProtocol = jenkinsProtocol ?? throw new ArgumentNullException(nameof(jenkinsProtocol));
     _jenkinsFqdn     = jenkinsFqdn ?? throw new ArgumentNullException(nameof(jenkinsFqdn));
     _jobQueue        = jobQueue ?? throw new ArgumentNullException(nameof(jobQueue));
     _allowedChatIds  = allowedChatIds;
 }
Ejemplo n.º 2
0
 public JenkinsProject([NotNull] string name,
                       [NotNull] ILog logger,
                       [NotNull] AppConfiguration.AppConfiguration configuration,
                       [NotNull] IMainBot mainBot,
                       [NotNull] IJenkinsService jenkinsService,
                       [NotNull] IRedmineService redmineService)
 {
     this.Name              = name;
     this.Logger            = logger;
     this.Configuration     = configuration;
     this.MainBot           = mainBot;
     this.JenkinsService    = jenkinsService;
     this.RedmineService    = redmineService;
     this.BuildServerPulles = new List <JenkinsJobInfo>();
     this.VersionCurrent    = "0";
 }
Ejemplo n.º 3
0
 public JobStatusPollHostedService(IJobQueue queue, TelegramBotClient client, IJenkinsService jenkinsService)
 {
     _queue          = queue ?? throw new ArgumentNullException(nameof(queue));
     _client         = client ?? throw new ArgumentNullException(nameof(client));
     _jenkinsService = jenkinsService ?? throw new ArgumentNullException(nameof(jenkinsService));
 }