/// <summary> /// Retrieves the current snapshot of the status. /// </summary> /// <returns>The current status snapshot.</returns> public ProjectStatusSnapshot RetrieveCurrentStatus() { if (statusSnapshot == null) { lock (snapshotLock) { if (statusSnapshot == null) { client.ProcessSingleAction(p => { statusSnapshot = client.TakeStatusSnapshot(p.Name); }, InnerProject); } } } return(statusSnapshot); }
/// <summary> /// Retrieves a snapshot of the current build status. /// </summary> /// <returns>The current build status of the project.</returns> public virtual ProjectStatusSnapshot RetrieveSnapshot() { var snapshot = manager.TakeStatusSnapshot(projectName); return(snapshot); }