Path: redb-route/redb.Route/Abstractions/IProcessor.cs
Snapshot: redb-route, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages.
License: Apache-2.0. Repository: https://github.com/redbase-app/redb-route
Page: https://redbase.app/src/dev-2026-12-06/redb-route/redb.Route/Abstractions/IProcessor.cs
----
namespace redb.Route.Abstractions;
///
/// Processes a message exchange asynchronously.
/// All processors in redb.Route are async-first with CancellationToken support.
///
public interface IProcessor
{
/// Processes the exchange asynchronously.
/// The message exchange to process.
/// Cancellation token for graceful shutdown.
Task Process(IExchange exchange, CancellationToken ct = default);
}