Skip to content

Bump Foundatio.Mediator from 1.0.1 to 1.1.0#265

Merged
github-actions[bot] merged 1 commit intomainfrom
dependabot/nuget/Foundatio.Mediator-1.1.0
Apr 13, 2026
Merged

Bump Foundatio.Mediator from 1.0.1 to 1.1.0#265
github-actions[bot] merged 1 commit intomainfrom
dependabot/nuget/Foundatio.Mediator-1.1.0

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot bot commented on behalf of github Apr 13, 2026

Updated Foundatio.Mediator from 1.0.1 to 1.1.0.

Release notes

Sourced from Foundatio.Mediator's releases.

1.1.0

What's New

IMediatorBuilder Fluent API

AddMediator() now returns IMediatorBuilder instead of IServiceCollection, enabling fluent chaining for extension packages:

services.AddMediator().AddQueues();

CallContext & HTTP Binding

  • CallContext — A new pooled, lightweight mechanism for passing request-scoped objects (HttpContext, HttpRequest, HttpResponse) to handler and middleware methods, reducing allocations and improving testability
  • HTTP binding attributes — Message properties can now use [FromHeader], [FromQuery], and [FromRoute] to bind values from the HTTP request before the handler is invoked

Handler Metadata & Registry

  • HandlerRegistry now stores rich attribute metadata, source type/method names, parameter types, and stable DescriptorId identifiers
  • New indexed lookups by attribute type and descriptor ID for extension packages and middleware
  • HandlerExecutionInfo includes an optional DescriptorId for improved traceability

MessageContext<T> Subscriptions

mediator.SubscribeAsync<MessageContext<T>>() wraps subscription messages with publisher metadata (ActivityContext), enabling trace context propagation across publish/subscribe boundaries.

Result Type Improvements

  • Result.Accepted(message, location) — New overload that accepts a location string (e.g., a job status URL). Generated endpoints now emit a proper HTTP Location header on 202 responses.
  • Result.FromResult(IResult) — Safe cross-type conversion between Result and Result<T>, replacing hard casts in generated middleware pipelines

Endpoint Generation Enhancements

  • Improved route generation with better handling of non-CRUD verbs and kebab-case conversion
  • Refactored to use Group terminology (replacing Category) for clarity and consistency
  • New RouteConventions utility encapsulating shared routing logic
  • ClaimsPrincipal is now automatically available as a handler parameter in endpoints
  • Assembly name included in endpoint mapping log messages for modular apps

Authorization & OpenTelemetry

  • Generated handlers skip redundant authorization for event/notification dispatch (skipAuthorization parameter)
  • Notification handler activities now include the handler class name (e.g., Handle OrderHandler.OrderCreated)
  • IAuthorizationContextProvider falls back to Thread.CurrentPrincipal when HttpContext is unavailable (background workers)

Infrastructure

  • Startup logging moved from Console.WriteLine to ILoggerFactory-backed logging
  • Enabled TreatWarningsAsErrors and fixed all nullable reference type annotations
  • New endpoint benchmarks comparing hand-coded minimal APIs vs source-generated endpoints
  • Updated to .NET 10.0.5 dependencies
    ... (truncated)

Commits viewable in compare view.

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

---
updated-dependencies:
- dependency-name: Foundatio.Mediator
  dependency-version: 1.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added .NET Pull requests that update .NET code dependencies Pull requests that update a dependency file labels Apr 13, 2026
@github-actions github-actions bot merged commit d3b1a91 into main Apr 13, 2026
2 of 3 checks passed
@dependabot dependabot bot deleted the dependabot/nuget/Foundatio.Mediator-1.1.0 branch April 13, 2026 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file .NET Pull requests that update .NET code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants