Beispiel #1
0
        async void queryButton_Click(object sender, EventArgs e)
        {
            try
            {
                //IsProcessing = true;
                string t = analyticText.Text;
                testQueryService = new TestQueryService(new AuthenticationService(Constants.TestQueryApiKey));
                var queryResult = await testQueryService.TestQueryAsync(t);

                analyticText.Text = queryResult;
                //IsProcessing = false;
            }
            catch (Exception ex)
            {
                System.Diagnostics.Debug.WriteLine(ex.Message);
                analyticText.Text += ex.Message; // " error";
            }
        }
Beispiel #2
0
 /// <summary>
 /// 初始化一个<see cref="QueryControllerBase{TDto,TQuery}"/>类型的实例
 /// </summary>
 /// <param name="service">查询服务</param>
 public TestQueryController(ITestQueryService service) : base(service)
 {
 }