Skip to content

docs: fix the ContextAwareBinder example in README - #41

Merged
rameel merged 1 commit into
mainfrom
docs/fix-readme-example
Nov 19, 2026
Merged

rameel merged 1 commit into
mainfrom
docs/fix-readme-example

Conversation

@rameel

@rameel rameel commented Nov 19, 2026

Copy link
Copy Markdown
Owner

The ContextAwareBinder example in README compared level with LogLevel.Error without registering LogLevel, so parsing failed with Cannot resolve symbol 'LogLevel'., and IsEnabled used a _predicate field that the example never set. This PR registers LogLevel in the example, explains why it is needed, and assigns the compiled predicate to _predicate.

It also lists the supported versions as .NET 6 and later, since the package targets net6.0, links CONTRIBUTING.md, and rewords a few sentences.

The link to CONTRIBUTING.md is absolute because README is packed into the NuGet package, where relative links do not work.

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com

The example compared level with LogLevel.Error without registering
LogLevel, so parsing failed with "Cannot resolve symbol 'LogLevel'",
and IsEnabled used a _predicate field that the example never set.
The example now registers LogLevel and assigns the compiled predicate
to _predicate.

It also lists the supported versions as .NET 6 and later, since the
package targets net6.0, links CONTRIBUTING.md, and rewords a few
sentences.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@rameel
rameel merged commit d24bc56 into main Nov 19, 2026
1 check passed
@rameel
rameel deleted the docs/fix-readme-example branch November 19, 2026 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant