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; }
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"; }
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)); }