예제 #1
0
        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;
        }
예제 #2
0
 private Terminal()
 {
     Code = Config.TerminalCode;
     TerminalName = Config.TerminalName;
     Session = new ZeroSession();
 }