public void Disconnect() { Items.Clear(); fPxy.Disconnect(); fPxy = null; OnDisconnect?.Invoke(this); }
public void Connect() { fPxy = ((TVISlaveSrvs)Parent).fSlaves.Connect(fSrvInfo.get_Item("KLSRVH_SRV_ID"), -1); Items.Add(new TVISlaveSrvs(new KlAkSlaveServers() { AdmServer = fPxy })); Items.Add(new TVIVSrvs(new KlAkVServers3() { AdmServer = fPxy })); OnConnect?.Invoke(this); }
public static KlAkParams PxyProps(KlAkProxy Pxy) { // Эти поля взяты из klakaut.chm return((Pxy == null) ? null : new KlAkParams() { { "IsAlive", Pxy.GetProp("IsAlive") }, { "KLADMSRV_VS_LICDISABLED", Pxy.GetProp("KLADMSRV_VS_LICDISABLED") }, { "KLADMSRV_VSID", Pxy.GetProp("KLADMSRV_VSID") }, { "KLADMSRV_USERID", Pxy.GetProp("KLADMSRV_USERID") ?? "<null>" }, { "KLADMSRV_SAAS_BLOCKED", Pxy.GetProp("KLADMSRV_SAAS_BLOCKED") }, { "KLADMSRV_SERVER_HOSTNAME", Pxy.GetProp("KLADMSRV_SERVER_HOSTNAME") } }); }
public void Connect() { fPxy = new KlAkProxy(); fPxy.Connect(fParams); Items.Add(new TVISlaveSrvs(new KlAkSlaveServers() { AdmServer = fPxy })); Items.Add(new TVIVSrvs(new KlAkVServers3() { AdmServer = fPxy })); OnConnect?.Invoke(this); }