public Downloader(BlackVueConfig config) { _config = config; _httpClient = new HttpClient { BaseAddress = new Uri(_config.CameraUrl) }; Receive <DownloadIndex>(msg => HandleDownloadIndex()); Receive <DownloadFile>(msg => HandleDownloadFile(msg)); }
public DownloadService() { _config = new BlackVueConfig(); _system = ActorSystem.Create("BlackVue"); _coordinator = _system.ActorOf(Props.Create(() => new DownloadCoordinator(_config))); }
public DownloadCoordinator(BlackVueConfig config) { _config = config; Ready(); }