Beispiel #1
0
 public Server(string mainUrl, HttpServerConfigs configs)
 {
     _mainUrl                      = mainUrl;
     this.configs                  = configs;
     this.installService           = new InstallService();
     this.downloadService          = new DownloadService(installService, configs);
     this.mainInfoCollectorService = new MainInfoCollectorService();
 }
Beispiel #2
0
 public MainController(HttpServerConfigs configs,
                       IDownloadService downloadService,
                       IMainInfoCollectorService mainInfoCollectorService)
 {
     this.configs                  = configs;
     this.downloadService          = downloadService;
     this.mainInfoCollectorService = mainInfoCollectorService;
 }