public Snapshot CreateSnapshot(Bundle.BundleType type, Uri link, IEnumerable <string> keys, string sortby, IEnumerable <string> includes = null) { Snapshot snapshot = Snapshot.Create(type, link, keys, sortby, includes); snapshotstore.AddSnapshot(snapshot); return(snapshot); }
/// <summary> /// Creates a snapshot for search commands /// </summary> public Snapshot CreateSnapshot(Bundle.BundleType type, Uri link, IEnumerable <string> keys, string sortby = null, int?count = null, IList <string> includes = null) { Snapshot snapshot = Snapshot.Create(type, link, keys, sortby, NormalizeCount(count), includes); snapshotstore.AddSnapshot(snapshot); return(snapshot); }
public ISnapshotPagination StartPagination(Snapshot snapshot) { if (_snapshotstore != null) { _snapshotstore.AddSnapshot(snapshot); } else { snapshot.Id = null; } return(_paginationProvider.StartPagination(snapshot)); }
public async Task <ISnapshotPagination> StartPagination(Snapshot snapshot) { if (_snapshotstore != null) { await _snapshotstore.AddSnapshot(snapshot).ConfigureAwait(false); } else { snapshot.Id = null; } return(_paginationProvider.StartPagination(snapshot)); }