/// <summary> /// Query the LUIS service using this request. /// </summary> /// <param name="service">LUIS service.</param> /// <param name="request">Query request.</param> /// <param name="token">Cancellation token.</param> /// <returns>LUIS result.</returns> public static async Task <LuisResult> QueryAsync(this ILuisService service, LuisRequest request, CancellationToken token) { service.ModifyRequest(request); var uri = service.BuildUri(request); return(await service.QueryAsync(uri, token)); }
public LuisRequest ModifyRequest(LuisRequest request) { return(model.ModifyRequest(request)); }
Uri ILuisService.BuildUri(LuisRequest luisRequest) { return(luisRequest.BuildUri(this.model)); }
public LuisRequest ModifyRequest(LuisRequest request) { Options.Apply(request); return(request); }