Exemplo n.º 1
0
        /// <inheritdoc />
        public Task <Result <LevelSelectors> > GetLevelSelectorsAsync(Context context, Fingerprint weakFingerprint, CancellationToken cts, int level)
        {
            if (_memoizationReadOnlySession is IReadOnlyMemoizationSessionWithLevelSelectors withLevelSelectors)
            {
                return(withLevelSelectors.GetLevelSelectorsAsync(context, weakFingerprint, cts, level));
            }

            throw new NotSupportedException($"ReadOnlyMemoization session {_memoizationReadOnlySession.GetType().Name} does not support GetLevelSelectors functionality.");
        }