public static CaptureSession Load([NotNull] string path, [NotNull] FeedBuilder feedBuilder) { #region Sanity checks if (string.IsNullOrEmpty(path)) { throw new ArgumentNullException("path"); } if (feedBuilder == null) { throw new ArgumentNullException("feedBuilder"); } #endregion return(new CaptureSession(BinaryStorage.LoadBinary <Snapshot>(path), feedBuilder)); }