Esempio n. 1
0
 public Worker(ILogger <Worker> logger, IConfiguration config, IHostApplicationLifetime lifeTime)
 {
     _logger     = logger;
     _config     = config.Get <Config>();
     _lifeTime   = lifeTime;
     _notifiers  = NotifierFactory.CreateFromConfig(config, logger).ToList();
     _httpClient = new LsfHttpClientImpl(_config.BaseUrl);
 }
Esempio n. 2
0
        private static bool Authenticate(LsfHttpClient httpClient)
        {
            Console.Write("Please enter your lsf username: "******"Please enter your lsf password: "******"Authentication failed!");
                return(false);
            }

            return(true);
        }
Esempio n. 3
0
 public LsfScheduleClient(LsfHttpClient httpClient, EventParser parser)
 {
     _httpClient = httpClient;
     _parser     = parser;
 }
Esempio n. 4
0
 public LsfScheduleClient(LsfHttpClient httpClient)
     : this(httpClient, new EventParser())
 {
 }
Esempio n. 5
0
 protected WebParser(LsfHttpClient httpClient)
 {
     _httpClient = httpClient;
 }
Esempio n. 6
0
 public GradingParser(LsfHttpClient httpClient)
 {
     HttpClient = httpClient;
 }