You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Usage of .Text() in custom builder always gets overridden #99
Provided as pull request. I guess the test can't be more to the point (and for this issue I don't see any use for additional configuration), but the code is part of mycroes/SupportManager (...Conventions.cs).
Finally coming back to this. This is because the ModelMetadata extensions (that make these behave like ASP.NET Core) are modifiers, not builders. Builders go first, then modifiers. You've replaced the builder, not the modifier.
Activity
jbogard commentedon Aug 13, 2018
Do you have a larger example? What does your registration code look like?
mycroes commentedon Aug 13, 2018
Provided as pull request. I guess the test can't be more to the point (and for this issue I don't see any use for additional configuration), but the code is part of mycroes/SupportManager (...Conventions.cs).
mycroes commentedon Aug 13, 2018
Well actually, the issue is part of SupportManager, where I use a builder to properly format DateTime(Offset)s, the code is just a contrived test.
jbogard commentedon Dec 31, 2020
Finally coming back to this. This is because the ModelMetadata extensions (that make these behave like ASP.NET Core) are modifiers, not builders. Builders go first, then modifiers. You've replaced the builder, not the modifier.
Adding your modifier makes this work: