Class RouteResourceResolver

Namespace: redb.Route.Core
Assembly: redb.Route.dll

Default : probes, in order, the reference as an absolute
path, (when set), , and the
current working directory. The working directory is deliberately LAST: it preserves the
pre-resolver behaviour (a bare File.Exists) as the final fallback rather than the rule.

public sealed class RouteResourceResolver : IRouteResourceResolver

Inheritance

Object→RouteResourceResolver

Implements

Properties

Default

The shared instance used when no resolver is registered on the context.

public static RouteResourceResolver Default { get; }

ResourceRoot

Optional search base probed first for relative references (e.g. a package root).

public string? ResourceRoot { get; init; }

Methods

DescribeSearch(string)

Where looked, for error messages. Defaults to the reference itself.

public string DescribeSearch(string reference)

Resolve(string)

Returns an absolute path to an existing file for the reference, or null when not found.

public string? Resolve(string reference)