C# Class 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.
Inheritance: IDisposable
Afficher le fichier Open project: GridProtectionAlliance/openHistorian Class Usage Examples

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

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

Method Details

Contains() public abstract méthode

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

Dispose() public méthode

Releases all the resources used by the ArchiveListEditor object.
public Dispose ( ) : void
Résultat void

Dispose() protected méthode

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.
Résultat void

RenewArchiveSnapshot() public abstract méthode

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
Résultat void

TryRemoveAndDelete() public abstract méthode

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.
Résultat bool

TryRemoveAndDispose() public abstract méthode

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
Résultat bool