C# Класс GSF.Snap.Services.Writer.RolloverLogFile

Logs the rollover process so that it can be properly finished in the event of a power outage or process crash
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
DestinationFile System.Guid
FileName string
IsValid bool
SourceFiles List

Открытые методы

Метод Описание
Delete ( ) : void

Deletes the file associated with this ArchiveLog

Recover ( ArchiveList list ) : void

Recovers this rollover during an application crash.

RolloverLogFile ( string fileName ) : GSF.Diagnostics

Resumes a rollover log

RolloverLogFile ( string fileName, List sourceFiles, System.Guid destinationFile ) : GSF.Diagnostics

Creates a new rollover log

Приватные методы

Метод Описание
RolloverLogFile ( ) : GSF.Diagnostics

Описание методов

Delete() публичный Метод

Deletes the file associated with this ArchiveLog
public Delete ( ) : void
Результат void

Recover() публичный Метод

Recovers this rollover during an application crash.
public Recover ( ArchiveList list ) : void
list ArchiveList
Результат void

RolloverLogFile() публичный Метод

Resumes a rollover log
public RolloverLogFile ( string fileName ) : GSF.Diagnostics
fileName string the name of the log file to load.
Результат GSF.Diagnostics

RolloverLogFile() публичный Метод

Creates a new rollover log
public RolloverLogFile ( string fileName, List sourceFiles, System.Guid destinationFile ) : GSF.Diagnostics
fileName string the name of the file to save
sourceFiles List the source files in the rollover process
destinationFile System.Guid the destination file in the rollover process.
Результат GSF.Diagnostics

Описание свойств

DestinationFile публичное свойство

Gets the destination file
public Guid,System DestinationFile
Результат System.Guid

FileName публичное свойство

Gets the filename of this log file. String.Empty if not currently associated with a file.
public string FileName
Результат string

IsValid публичное свойство

Gets if the file is valid and not corrupt.
public bool IsValid
Результат bool

SourceFiles публичное свойство

Gets all of the source files.
public List SourceFiles
Результат List