public Himawari8Captor(IOptionsSnapshot <CaptureOption> options, IHttpClientFactory factory, IOssProvider downloaderProvider) : base(options, factory, downloaderProvider)
 {
 }
Beispiel #2
0
 public BaseCaptor(IOptionsSnapshot <CaptureOption> options, IHttpClientFactory factory, IOssProvider downloaderProvider)
 {
     Client         = factory.CreateClient(ProviderName);
     Options        = options.Value;
     ImagePath      = Path.Combine(Options.SavePath, "wallpaper.bmp");
     Downloader     = downloaderProvider.GetDownloader();
     CurrentImageId = !File.Exists("imageId.txt") ? null : File.ReadLines("imageId.txt").FirstOrDefault();
 }
Beispiel #3
0
 public FY4Captor(IOptionsSnapshot <CaptureOption> options, IHttpClientFactory factory, IOssProvider downloaderProvider) : base(options, factory, downloaderProvider)
 {
     Client.BaseAddress = new Uri("http://rsapp.nsmc.org.cn");
     BaseRate           = 687;
 }