Interface IRouteCheck<TDetail>
- Namespace
- EncDotNet.S100.Navigation
- Assembly
- EncDotNet.S100.Navigation.dll
A check whose outcome carries its own typed result, such as ChartCheck with its ChartCheckResult, so a caller that runs it directly reads the result without a cast.
public interface IRouteCheck<TDetail> : IRouteCheck where TDetail : class
Type Parameters
TDetailThe check's own result.
- Inherited Members
Methods
Run(RouteCheckContext, CancellationToken)
Runs the check.
RouteCheckOutcome<TDetail> Run(RouteCheckContext context, CancellationToken cancellationToken)
Parameters
contextRouteCheckContextThe plan, settings, sources and shared track.
cancellationTokenCancellationTokenCancels the check.
Returns
- RouteCheckOutcome<TDetail>
The findings and the check's own result, or why the check was skipped.