/// <summary> /// DoOnRequestServerConfiguration method implementation (Client) /// </summary> private void DoOnRequestServerConfiguration(string servername) { if (CFGUtilities.IsPrimaryComputer()) { List <string> lst = new List <string>() { servername }; PipeClient pipe = new PipeClient(XORUtilities.XORKey, lst); string req = Environment.MachineName; NamedPipeRegistryRecord reg = pipe.DoRequestServerConfiguration(req); UpgradeServersConfig(reg); } return; }
/// <summary> /// DoOnCreateConfiguration method implementation (Client) /// </summary> private void DoOnClearConfiguration() { if (CFGUtilities.IsPrimaryComputer()) { if (_adfsservers.Count == 0) { BuildADFSServersList(); } PipeClient pipe = new PipeClient(XORUtilities.XORKey, ADFSServers, true); string req = Environment.MachineName; if (!pipe.DoClearConfigurationCache(req)) { this.EventLog.WriteEntry("Configuration cahe cannot be cleared !", EventLogEntryType.Warning, 10000); } } }
/// <summary> /// DoOnSendConfiguration method implementation (Client) /// </summary> private void DoOnSendConfiguration() { if (CFGUtilities.IsPrimaryComputer()) { if (_adfsservers.Count == 0) { BuildADFSServersList(); } PipeClient pipe = new PipeClient(XORUtilities.XORKey, ADFSServers, true); byte[] byt = ReadConfigurationForCache(); string msg = Convert.ToBase64String(byt, 0, byt.Length); string req = Environment.MachineName; if (!pipe.DoReloadConfiguration(req, msg)) { this.EventLog.WriteEntry("Some Servers configuration where not updated ! Wait for WID synchro !", EventLogEntryType.Warning, 10000); } } }