Skip to content

Start of NServiceBus 10 to 11 upgrade guide based on deprecations in 10.2#8162

Open
DavidBoike wants to merge 6 commits intomasterfrom
core-10to11
Open

Start of NServiceBus 10 to 11 upgrade guide based on deprecations in 10.2#8162
DavidBoike wants to merge 6 commits intomasterfrom
core-10to11

Conversation

@DavidBoike
Copy link
Copy Markdown
Member

No description provided.

@DavidBoike DavidBoike self-assigned this Apr 7, 2026
@DavidBoike DavidBoike marked this pull request as draft April 7, 2026 21:49
@DavidBoike DavidBoike requested a review from mattmercurio April 13, 2026 19:15
Comment thread nservicebus/upgrades/10to11/index.md Outdated
Comment thread nservicebus/upgrades/10to11/index.md Outdated
logger.LogInformation("Message logged before the host is built.");
```

This approach is suitable only for trivial scenarios. In non-trivial applications, `ILoggerFactory` and `ILogger` should be obtained from the DI container rather than created directly, as described in [Integration with hosts and dependency injection](https://learn.microsoft.com/en-us/dotnet/core/extensions/logging/overview#integration-with-hosts-and-dependency-injection).
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm wrestling with how much we should help here. Should we mention changing a static API so a logger/factory is supplied by parameter? Putting a factory on a static class somewhere?

Co-authored-by: David Boike <david.boike@gmail.com>
@DavidBoike DavidBoike marked this pull request as ready for review April 15, 2026 14:59
Comment thread nservicebus/upgrades/10to11/index.md Outdated
Co-authored-by: David Boike <david.boike@gmail.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.

3 participants