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

Summary description for PrevalenceBaseUtil.
Показать файл Открыть проект

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

Метод Описание
FindLastSnapshot ( PrevalenceEngine engine ) : FileInfo

Returns the last (most recent) snapshot file in the PrevalenceEngine.PrevalenceBase folder or null when no snapshot exists.

FindLastSnapshot ( FileInfo files ) : int

Returns the index of the last snapshot file in files.

GetFileInfoRange ( FileInfo files, int index, int count ) : System.IO.FileInfo[]

Creates a new array of count objects from files starting at index.

GetPrevalenceFilesSortedByName ( PrevalenceEngine engine ) : System.IO.FileInfo[]

Returns a list with all the files in the PrevalenceBase folder sorted by name.

GetSnapshotFiles ( PrevalenceEngine engine ) : System.IO.FileInfo[]

Returns all snapshot files in the PrevalenceEngine.PrevalenceBase folder sorted by filename.

GetUnnecessaryPrevalenceFiles ( PrevalenceEngine engine ) : System.IO.FileInfo[]

Returns a list with all the files that are no longer necessary to restore the state of the prevalence system.

SortFilesByName ( FileInfo files ) : void

Sorts the array by FileInfo.Name.

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

FindLastSnapshot() публичный статический Метод

Returns the last (most recent) snapshot file in the PrevalenceEngine.PrevalenceBase folder or null when no snapshot exists.
public static FindLastSnapshot ( PrevalenceEngine engine ) : FileInfo
engine Bamboo.Prevalence.PrevalenceEngine the prevalence engine
Результат System.IO.FileInfo

FindLastSnapshot() публичный статический Метод

Returns the index of the last snapshot file in files.
public static FindLastSnapshot ( FileInfo files ) : int
files System.IO.FileInfo
Результат int

GetFileInfoRange() публичный статический Метод

Creates a new array of count objects from files starting at index.
public static GetFileInfoRange ( FileInfo files, int index, int count ) : System.IO.FileInfo[]
files System.IO.FileInfo source array
index int first index to copy
count int items to be copied
Результат System.IO.FileInfo[]

GetPrevalenceFilesSortedByName() публичный статический Метод

Returns a list with all the files in the PrevalenceBase folder sorted by name.
public static GetPrevalenceFilesSortedByName ( PrevalenceEngine engine ) : System.IO.FileInfo[]
engine Bamboo.Prevalence.PrevalenceEngine the prevalence engine
Результат System.IO.FileInfo[]

GetSnapshotFiles() публичный статический Метод

Returns all snapshot files in the PrevalenceEngine.PrevalenceBase folder sorted by filename.
public static GetSnapshotFiles ( PrevalenceEngine engine ) : System.IO.FileInfo[]
engine Bamboo.Prevalence.PrevalenceEngine the prevalence engine
Результат System.IO.FileInfo[]

GetUnnecessaryPrevalenceFiles() публичный статический Метод

Returns a list with all the files that are no longer necessary to restore the state of the prevalence system.
public static GetUnnecessaryPrevalenceFiles ( PrevalenceEngine engine ) : System.IO.FileInfo[]
engine Bamboo.Prevalence.PrevalenceEngine the prevalence engine
Результат System.IO.FileInfo[]

SortFilesByName() публичный статический Метод

Sorts the array by FileInfo.Name.
public static SortFilesByName ( FileInfo files ) : void
files System.IO.FileInfo array to be sorted in place
Результат void