예제 #1
0
        public Downloader(BlackVueConfig config)
        {
            _config = config;

            _httpClient = new HttpClient {
                BaseAddress = new Uri(_config.CameraUrl)
            };

            Receive <DownloadIndex>(msg => HandleDownloadIndex());

            Receive <DownloadFile>(msg => HandleDownloadFile(msg));
        }
예제 #2
0
 public DownloadService()
 {
     _config      = new BlackVueConfig();
     _system      = ActorSystem.Create("BlackVue");
     _coordinator = _system.ActorOf(Props.Create(() => new DownloadCoordinator(_config)));
 }
        public DownloadCoordinator(BlackVueConfig config)
        {
            _config = config;

            Ready();
        }