示例#1
0
 /// <summary>
 /// return asynchronous  DirectionsResponce using Direction service as a singleton
 /// </summary>
 /// <param name="request"></param>
 /// <returns></returns>
 public static Task <DirectionsResponse> GetDirectionsAsync(this DirectionsRequest request)
 {
     return(DirectionsService.GetSingletonInstance().GetDirectionsAsync(request));
 }
示例#2
0
 /// <summary>
 /// return DirectionsResponce using Direction service as a singleton
 /// </summary>
 /// <param name="request"></param>
 /// <returns></returns>
 public static DirectionsResponse GetDirections(this DirectionsRequest request)
 {
     return(DirectionsService.GetSingletonInstance().GetDirections(request));
 }