예제 #1
0
        public ISnapshotPagination StartPagination(Snapshot snapshot)
        {
            if (_snapshotstore != null)
            {
                _snapshotstore.AddSnapshot(snapshot);
            }
            else
            {
                snapshot.Id = null;
            }

            return(_paginationProvider.StartPagination(snapshot));
        }
예제 #2
0
        public async Task <ISnapshotPagination> StartPagination(Snapshot snapshot)
        {
            if (_snapshotstore != null)
            {
                await _snapshotstore.AddSnapshot(snapshot).ConfigureAwait(false);
            }
            else
            {
                snapshot.Id = null;
            }

            return(_paginationProvider.StartPagination(snapshot));
        }