C# 클래스 Bamboo.Prevalence.Util.PrevalenceBaseUtil

Summary description for PrevalenceBaseUtil.
파일 보기 프로젝트 열기: bamboo/Bamboo.Prevalence

공개 메소드들

메소드 설명
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