public double LoadConfiguration(ConfigurationModelManager Context, ZeroSession session) { Session = session; SyncEvery = LoadSyncRecurrence(Context); Steps.Add(ExecuteHelloCommand); if (ZeroCommonClasses.Terminal.Instance.Session.Rules.IsValid(Rules.IsTerminalZero)) { Steps.Add(SendTerminals); Steps.Add(SendModules); } else { Steps.Add(ValidateCurrentModules); Steps.Add(GetTerminalProperties); } Steps.Add(GetTerminals); Steps.Add(SendTerminalProperties); Steps.Add(SendExistingPacks); Steps.Add(GetExistingPacks); Steps.Add(ExecuteByeCommand); Steps.Add(ReLoadSyncRecurrence); return SyncEvery; }
private Terminal() { Code = Config.TerminalCode; TerminalName = Config.TerminalName; Session = new ZeroSession(); }