Exemplo n.º 1
0
 public void Run(VgcApis.IApi vgcApi)
 {
     vgcUtils     = vgcApi.GetVgcUtils();
     vgcServers   = vgcApi.GetVgcServersService();
     vgcSetting   = vgcApi.GetVgcSettingService();
     userSettings = LoadUserSettings();
 }
Exemplo n.º 2
0
 public void Run(VgcApis.IApi api)
 {
     this.api      = api;
     this.settings = new Services.Settings();
     vgcServers    = api.GetVgcServersService();
     vgcSettings   = api.GetVgcSettingService();
     settings.Run(api);
 }
Exemplo n.º 3
0
        public void Run(VgcApis.IApi api)
        {
            orgSysProxySetting = Lib.Sys.ProxySetter.GetProxySetting();
            this.vgcApi        = api;

            this.vgcUtils = api.GetVgcUtils();
            var vgcSetting = api.GetVgcSettingService();
            var vgcServer  = api.GetVgcServersService();

            pacServer     = new PacServer();
            setting       = new PsSettings();
            serverTracker = new ServerTracker();

            // dependency injection
            setting.Run(vgcUtils, vgcSetting);
            pacServer.Run(vgcUtils, setting);
            serverTracker.Run(vgcUtils, setting, pacServer, vgcServer);

            setting.DebugLog("call Luncher.run");
        }
Exemplo n.º 4
0
 public void Run(VgcApis.IApi api)
 {
     luncher = new Services.PsLuncher();
     luncher.Run(api);
 }