コード例 #1
0
        /// <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));
        }
コード例 #2
0
 public LuisRequest ModifyRequest(LuisRequest request)
 {
     return(model.ModifyRequest(request));
 }
コード例 #3
0
 Uri ILuisService.BuildUri(LuisRequest luisRequest)
 {
     return(luisRequest.BuildUri(this.model));
 }
コード例 #4
0
 public LuisRequest ModifyRequest(LuisRequest request)
 {
     Options.Apply(request);
     return(request);
 }