Skip to content

Backport multiple fixes#7776

Merged
DavidBoike merged 5 commits into
release-10.2from
backport
May 27, 2026
Merged

Backport multiple fixes#7776
DavidBoike merged 5 commits into
release-10.2from
backport

Conversation

@danielmarbach
Copy link
Copy Markdown
Contributor

@danielmarbach danielmarbach commented May 27, 2026

Brings back

#7770
#7771
#7772
#7775
#7778

to release 10.2 branch

SimonCropp and others added 4 commits May 27, 2026 13:45
Delete saga storage directory in persistence tests Cleanup
PersistenceTestsConfiguration.Configure created saga storage under
%TEMP%\.sagas\<TestID> but Cleanup was a no-op, so every persistence
test run leaked its directory and they accumulated indefinitely.
Track the storage location and recursively delete it in Cleanup
Co-authored-by: dependencyupdates[bot] <218638057+dependencyupdates[bot]@users.noreply.github.com>
…IHandleMessages (#7770)

* Fix NSB0033 false positive for Handle methods implementing a derived IHandleMessages

Fix NSB0033 false positive for Handle methods implementing a derived IHandleMessages<T> interface
The mixed-style check treated any Handle(message, context, ...) method with more than
two parameters as convention-based, even when that method is the implementation of an
interface member. This produced a false positive for handlers that implement a custom
interface deriving from IHandleMessages<T> which exposes an extended Handle signature
(e.g. an extra CancellationToken) backed by a default interface method that forwards to
the two-parameter IHandleMessages<T>.Handle.
IsValidConventionBasedHandleMethod now classifies a Handle method that implements any
interface member as interface-based rather than convention-based, regardless of
parameter count.

* Add test to verify NSB0033 does not report false positive for derived handler interfaces

* Update handler validation to support custom interface implementation types and introduce sensible fast path checks

* Regression test

* Fix discover of handler interface methods

---------

Co-authored-by: Daniel Marbach <danielmarbach@users.noreply.github.com>
This causes a warning when compiled using .NET 11 Preview 4.
#7778)

* Add CompilerGenerated attribute to generated handlers

* Align attribute qualifying

* Hide the other source gen only methods

* Emit GeneratedCodeAttribute to generated infrastructure classes and methods

---------

Co-authored-by: Daniel Marbach <danielmarbach@users.noreply.github.com>
@DavidBoike DavidBoike changed the base branch from master to release-10.2 May 27, 2026 15:01
@DavidBoike DavidBoike changed the title Backport Backport multiple fixes May 27, 2026
@DavidBoike DavidBoike merged commit 87a69b8 into release-10.2 May 27, 2026
4 checks passed
@DavidBoike DavidBoike deleted the backport branch May 27, 2026 15:09
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.

5 participants