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

Provides a way to edit an ArchiveList since all edits must be atomic. WARNING: Instancing this class on an ArchiveList will lock the class until Dispose is called. Therefore, keep locks to a minimum and always use a Using block.
상속: IDisposable
파일 보기 프로젝트 열기: GridProtectionAlliance/openHistorian 1 사용 예제들

공개 메소드들

메소드 설명
Contains ( System.Guid archiveId ) : bool

Returns true if the archive list contains the provided file.

Dispose ( ) : void

Releases all the resources used by the ArchiveListEditor object.

RenewArchiveSnapshot ( System.Guid archiveId ) : void

Renews the snapshot of the archive file. This will acquire the latest read transaction so all new snapshots will use this later version.

TryRemoveAndDelete ( System.Guid archiveId ) : bool

Removes the supplied file from the ArchiveList{TKey,TValue} and queues it for deletion.

TryRemoveAndDispose ( System.Guid archiveId ) : bool

Removes the archiveId from ArchiveList{TKey,TValue} and queues it for disposal.

Also unlocks the archive file.

보호된 메소드들

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

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

메소드 상세

Contains() 공개 추상적인 메소드

Returns true if the archive list contains the provided file.
public abstract Contains ( System.Guid archiveId ) : bool
archiveId System.Guid the file
리턴 bool

Dispose() 공개 메소드

Releases all the resources used by the ArchiveListEditor object.
public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

Releases the unmanaged resources used by the ArchiveListEditor 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

RenewArchiveSnapshot() 공개 추상적인 메소드

Renews the snapshot of the archive file. This will acquire the latest read transaction so all new snapshots will use this later version.
public abstract RenewArchiveSnapshot ( System.Guid archiveId ) : void
archiveId System.Guid the ID of the archive snapshot to renew
리턴 void

TryRemoveAndDelete() 공개 추상적인 메소드

Removes the supplied file from the ArchiveList{TKey,TValue} and queues it for deletion.
public abstract TryRemoveAndDelete ( System.Guid archiveId ) : bool
archiveId System.Guid file to remove and delete.
리턴 bool

TryRemoveAndDispose() 공개 추상적인 메소드

Removes the archiveId from ArchiveList{TKey,TValue} and queues it for disposal.
Also unlocks the archive file.
public abstract TryRemoveAndDispose ( System.Guid archiveId ) : bool
archiveId System.Guid the archive to remove
리턴 bool