protected override void OnPrepareFile(DateTime startDateTime, List <ChannelContextGroup> channelContextGroupSet) { _dataFilePath = Path.Combine(this.DataWriterContext.DataDirectoryPath, $"{this.DataWriterContext.ProjectDescription.PrimaryGroupName}_{this.DataWriterContext.ProjectDescription.SecondaryGroupName}_{this.DataWriterContext.ProjectDescription.ProjectName}_V{ this.DataWriterContext.ProjectDescription.Version}_{startDateTime.ToString("yyyy-MM-ddTHH-mm-ss")}Z.dat"); if (_famosFile != null) { _famosFile.Dispose(); } this.OpenFile(_dataFilePath, startDateTime, channelContextGroupSet); }
protected override void FreeManagedResources() { base.FreeManagedResources(); _famosFile?.Dispose(); }