예제 #1
0
 public void Run(VgcApis.IApi vgcApi)
 {
     vgcUtils     = vgcApi.GetVgcUtils();
     vgcServers   = vgcApi.GetVgcServersService();
     vgcSetting   = vgcApi.GetVgcSettingService();
     userSettings = LoadUserSettings();
 }
예제 #2
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");
        }