Bamboo.Prevalence.Util.PrevalenceBaseUtil.FindLastSnapshot C# (CSharp) Method

FindLastSnapshot() public static method

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
return System.IO.FileInfo
		public static FileInfo FindLastSnapshot(PrevalenceEngine engine)
		{
			FileInfo[] snapshots = GetSnapshotFiles(engine);
			if (snapshots.Length > 0)
			{
				return snapshots[snapshots.Length-1];
			}
			return null;
		}
	}

Same methods

PrevalenceBaseUtil::FindLastSnapshot ( FileInfo files ) : int