Class RouteContextExtensions

Assembly: redb.Route.dll

Extension methods for — component auto-discovery and convenience helpers.

public static class RouteContextExtensions

Inheritance

Object→RouteContextExtensions

Methods

AddComponents(IRouteContext, params Assembly[])

Scans the specified assemblies for concrete implementations

public static IRouteContext AddComponents(this IRouteContext context, params Assembly[] assemblies)

GetAttachmentOptions(IRouteContext?)

The attachment options in force for context: the engine's

public static AttachmentOptions GetAttachmentOptions(this IRouteContext? context)

GetRequiredFromRegistry<T>(IRouteContext?, string)

Resolves a named object from the context registry and FAILS LOUD when nothing is

public static T GetRequiredFromRegistry<T>(this IRouteContext? context, string name) where T : class

GetStreamCacheOptions(IRouteContext?)

The stream cache options in force for context: a registered

public static StreamCacheOptions GetStreamCacheOptions(this IRouteContext? context)

RegisterPrefixResolver(IRouteContext, string, Func<IExchange, string, object?>)

Registers a ${prefix.rest} resolver for the expressions of this context only (prefix

public static IRouteContext RegisterPrefixResolver(this IRouteContext context, string prefix, Func<IExchange, string, object?> resolver)

Resolve<T>(IRouteContext?)

Resolves a service the context was given, looking in both places it can live: the services

public static T? Resolve<T>(this IRouteContext? context) where T : class