C# Класс Bamboo.Prevalence.Util.SnapshotTaker

Takes periodic snapshots of a PrevalenceEngine instance and applies a clean up policy to the prevalence base folder.
Наследование: System.IDisposable
Показать файл Открыть проект Примеры использования класса

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

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

Cancels the snapshot taking process.

SnapshotTaker ( PrevalenceEngine engine, System.TimeSpan period ) : System

Creates a new SnapshotTaker for the PrevalenceEngine engine with a period between snapshots equals to period but with no file cleanup policy (no files will be deleted from the prevalence base folder).

SnapshotTaker ( PrevalenceEngine engine, System.TimeSpan period, ICleanUpPolicy cleanUpPolicy ) : System

Creates a new SnapshotTaker for the PrevalenceEngine engine with a period between snapshots equals to period. Files will be removed according to the specified cleanUpPolicy object.

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

Метод Описание
DeleteFiles ( FileInfo files ) : void
OnTimer ( object state ) : void

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

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

Cancels the snapshot taking process.
public Dispose ( ) : void
Результат void

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

Creates a new SnapshotTaker for the PrevalenceEngine engine with a period between snapshots equals to period but with no file cleanup policy (no files will be deleted from the prevalence base folder).
public SnapshotTaker ( PrevalenceEngine engine, System.TimeSpan period ) : System
engine Bamboo.Prevalence.PrevalenceEngine prevalence engine to take snapshots from
period System.TimeSpan period between snapshots
Результат System

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

Creates a new SnapshotTaker for the PrevalenceEngine engine with a period between snapshots equals to period. Files will be removed according to the specified cleanUpPolicy object.
public SnapshotTaker ( PrevalenceEngine engine, System.TimeSpan period, ICleanUpPolicy cleanUpPolicy ) : System
engine Bamboo.Prevalence.PrevalenceEngine prevalence engine to take snapshots from
period System.TimeSpan period between snapshots
cleanUpPolicy ICleanUpPolicy clean up policy
Результат System