Skip to content

Bump Foundatio.Mediator.Abstractions from 1.0.1 to 1.1.0#266

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

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

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

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

Pinned Foundatio.Mediator.Abstractions at 1.1.0.

Release notes

Sourced from Foundatio.Mediator.Abstractions'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 dependabot bot added .NET Pull requests that update .NET code dependencies Pull requests that update a dependency file labels Apr 13, 2026
---
updated-dependencies:
- dependency-name: Foundatio.Mediator.Abstractions
  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 force-pushed the dependabot/nuget/Foundatio.Mediator.Abstractions-1.1.0 branch from 724ec9b to 9c22ef4 Compare April 13, 2026 07:43
@github-actions github-actions bot merged commit 55b7d90 into main Apr 13, 2026
2 of 3 checks passed
@dependabot dependabot bot deleted the dependabot/nuget/Foundatio.Mediator.Abstractions-1.1.0 branch April 13, 2026 07:44
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