Path: redb-route/redb.Route/Abstractions/IRouteScope.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/IRouteScope.cs
----
namespace redb.Route.Abstractions;
///
/// Implemented by every scope-opener definition (Filter, Loop, TryCatch, Choice, Split, etc.).
/// Provides a universal method as a shorter alias for the scope-specific
/// EndXxx() methods (e.g. EndLoop(), EndFilter()).
///
public interface IRouteScope
{
///
/// Closes this scope and returns the parent .
/// Equivalent to calling the scope-specific EndXxx() method.
///
///
/// Thrown if the scope was not attached to a parent route definition.
///
IRouteDefinition End();
}