I use the ArcGIS Runtime SDK for .NET
and I need to compute the distance between two points by calculate the shortest path from point to point@