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)); }