Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 27, 2025

NServiceBus 10.0.0-alpha.18 deprecates ConfigureMapping<TMessage>().ToSaga() in favor of MapSaga().ToMessage<TMessage>().

Changes

Updated all 6 saga mapping implementations in test projects:

  • When_storing_saga_with_high_contention.cs
  • When_mixing_persistence_with_other_persistence_for_sagas_and_outbox.cs
  • When_custom_provider_registered.cs
  • PropertyTypesTestSaga.cs
  • When_migrating_NServiceBus_dot_Persistence_dot_MongoDb.cs
  • When_migrating_NServiceBus_dot_MongoDB.cs

Example

Before:

mapper.ConfigureMapping<StartSaga>(m => m.SomeId).ToSaga(d => d.SomeId);
mapper.ConfigureMapping<AdditionalMessage>(m => m.SomeId).ToSaga(d => d.SomeId);

After:

mapper.MapSaga(d => d.SomeId)
    .ToMessage<StartSaga>(m => m.SomeId)
    .ToMessage<AdditionalMessage>(m => m.SomeId);

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: danielmarbach <174258+danielmarbach@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Nov 27, 2025

Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • f.feedz.io
    • Triggering command: /usr/bin/dotnet dotnet build (dns block)
    • Triggering command: /opt/hostedtoolcache/CodeQL/2.23.3/x64/codeql/csharp/tools/linux64/Semmle.Autobuild.CSharp /opt/hostedtoolcache/CodeQL/2.23.3/x64/codeql/csharp/tools/linux64/Semmle.Autobuild.CSharp (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI changed the title [WIP] Update NServiceBus Core to 10.0.0-alpha.18 Migrate saga mappings to MapSaga().ToMessage() API Nov 27, 2025
Copilot AI requested a review from danielmarbach November 27, 2025 13:37
@danielmarbach danielmarbach marked this pull request as ready for review November 27, 2025 15:17
@danielmarbach danielmarbach merged commit d3f0835 into renovate/nsb-core Nov 27, 2025
1 check passed
@danielmarbach danielmarbach deleted the copilot/sub-pr-843 branch November 27, 2025 15:17
danielmarbach added a commit that referenced this pull request Nov 27, 2025
* Update NServiceBus Core to 10.0.0-alpha.18

* Migrate saga mappings to MapSaga().ToMessage() API (#844)

* Initial plan

* Update saga mappings to use MapSaga().ToMessage() syntax

Co-authored-by: danielmarbach <174258+danielmarbach@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: danielmarbach <174258+danielmarbach@users.noreply.github.com>

---------

Co-authored-by: dependencyupdates[bot] <218638057+dependencyupdates[bot]@users.noreply.github.com>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: danielmarbach <174258+danielmarbach@users.noreply.github.com>
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.

2 participants