C# 클래스 GSF.Snap.Services.ArchiveListLog

Contains the Pending Deletions for the ArchiveList{TKey,TValue}. This class is thread safe.
상속: GSF.Diagnostics.DisposableLoggingClassBase
파일 보기 프로젝트 열기: GridProtectionAlliance/openHistorian 1 사용 예제들

공개 메소드들

메소드 설명
AddFileToDelete ( System.Guid archiveId ) : void

Appends the specified file to the list of files that should be deleted.

ArchiveListLog ( ArchiveListLogSettings settings = null ) : System

Creates a log that monitors pending deletions.

ClearCompletedLogs ( HashSet allFiles ) : void

Removes any log that is no longer valid from this list.

SaveLogToDisk ( ) : void

If the log is file backed

ShouldBeDeleted ( System.Guid fileId ) : bool

Gets if the specified file Id should be deleted based on the delete log.

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Releases the unmanaged resources used by the ArchiveListLog object and optionally releases the managed resources.

비공개 메소드들

메소드 설명
GetAllFilesToDelete ( ) : HashSet

Verify that none of the pending deletion files exist in the editor.

메소드 상세

AddFileToDelete() 공개 메소드

Appends the specified file to the list of files that should be deleted.
public AddFileToDelete ( System.Guid archiveId ) : void
archiveId System.Guid
리턴 void

ArchiveListLog() 공개 메소드

Creates a log that monitors pending deletions.
public ArchiveListLog ( ArchiveListLogSettings settings = null ) : System
settings ArchiveListLogSettings Optional settings for the log. If none are specified, the default will not load the settings.
리턴 System

ClearCompletedLogs() 공개 메소드

Removes any log that is no longer valid from this list.
public ClearCompletedLogs ( HashSet allFiles ) : void
allFiles HashSet
리턴 void

Dispose() 보호된 메소드

Releases the unmanaged resources used by the ArchiveListLog object and optionally releases the managed resources.
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
리턴 void

SaveLogToDisk() 공개 메소드

If the log is file backed
public SaveLogToDisk ( ) : void
리턴 void

ShouldBeDeleted() 공개 메소드

Gets if the specified file Id should be deleted based on the delete log.
public ShouldBeDeleted ( System.Guid fileId ) : bool
fileId System.Guid the id of the file.
리턴 bool