Skip to content

Conversation

@danielmarbach
Copy link
Contributor

@danielmarbach danielmarbach commented May 28, 2024

Fixes #4202

Follow through on #4142 since we covered more edge cases that weren't covered with the "c" format restrictions being lifted I have added a fallback to parsing with the "g" format should the "c" format parsing return false.

This should make the code compliant hopefully all cases that came from the previous plugin versions using custom timespan formatting

This needs to be back ported to 5.2

@danielmarbach danielmarbach changed the title Timespan parsing SagaAudit Timespan parsing fallback to "g" format in cases where "c" is not enough to stay compatible with previous versions May 28, 2024
@danielmarbach danielmarbach marked this pull request as ready for review May 28, 2024 23:00
@danielmarbach danielmarbach merged commit 99fe799 into master May 29, 2024
@danielmarbach danielmarbach deleted the timespan-parsing branch May 29, 2024 15:26
danielmarbach added a commit that referenced this pull request May 29, 2024
…is not enough to stay compatible with previous versions (#4199)

* CustomTimeSpanConverterTests

* Align the lower range to what I have contributed to .NET runtime

* More test cases and grouping

* Fallback to parsing with "g" format

---------

Co-authored-by: danielmarbach <danielmarbach@users.noreply.github.com>
(cherry picked from commit 99fe799)
danielmarbach added a commit that referenced this pull request May 29, 2024
…is not enough to stay compatible with previous versions (#4199) (#4203)

* CustomTimeSpanConverterTests

* Align the lower range to what I have contributed to .NET runtime

* More test cases and grouping

* Fallback to parsing with "g" format

---------

Co-authored-by: danielmarbach <danielmarbach@users.noreply.github.com>
(cherry picked from commit 99fe799)
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.

Specific delayed messages cannot be ingested from NServiceBus.SagaAudit 4.0.x or earlier

4 participants