/// <summary> /// Recover info from token /// </summary> /// <param name="token"></param> /// <param name="checkpointManager"></param> /// <returns></returns> internal void Recover(Guid token, ICheckpointManager checkpointManager) { var metadata = checkpointManager.GetLogCheckpointMetadata(token); if (metadata == null) { throw new FasterException("Invalid log commit metadata for ID " + token.ToString()); } using (StreamReader s = new StreamReader(new MemoryStream(metadata))) Initialize(s); }