Ejemplo n.º 1
0
        private CoreLogic coreLogic; // the server logic instance


        /// <summary>
        /// Initializes a new instance of the class.
        /// </summary>
        public Manager()
        {
            log       = LogStub.Instance;
            coreLogic = null;
            AppDirs   = new ServerDirs();
            AppDomain.CurrentDomain.UnhandledException += OnUnhandledException;
        }
Ejemplo n.º 2
0
 public void Dispose()
 {
     PcdmisService?.Dispose();
     MeasProgsManager.SavePrograms();
     ServerDirs.SaveDirs();
     ClosePcdmisServiceHost();
     CloseFileServiceHost();
 }
Ejemplo n.º 3
0
        private List <CalcEngine> calcEngines; // the objects that calculate channel data


        /// <summary>
        /// Initializes a new instance of the class.
        /// </summary>
        public Calculator(ServerDirs appDirs, ILog log)
        {
            this.appDirs = appDirs ?? throw new ArgumentNullException(nameof(appDirs));
            this.log     = log ?? throw new ArgumentNullException(nameof(log));
            calcEngines  = null;
        }