Exemple #1
0
        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);
        }
Exemple #2
0
        protected override void FreeManagedResources()
        {
            base.FreeManagedResources();

            _famosFile?.Dispose();
        }