예제 #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;
        }
예제 #2
0
 public void Dispose()
 {
     PcdmisService?.Dispose();
     MeasProgsManager.SavePrograms();
     ServerDirs.SaveDirs();
     ClosePcdmisServiceHost();
     CloseFileServiceHost();
 }
예제 #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;
        }