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