public static Result<Route[]> TryCalculate(
this RouterBase router,
IProfileInstance profile,
RouterPoint source,
RouterPoint[] targets,
CancellationToken cancellationToken)
returns an array of one element with the path from source to targets[0]. I think these 5 lines should be changed to simply return new Result(result.Value[0]).
This
Calculate
overload:returns an array of one element with the path from
source
totargets[0]
. I think these 5 lines should be changed to simplyreturn new Result(result.Value[0])
.