Пример #1
0
        public async Task TestGetInfo()
        {
            var response = await SqlGatewayApi.GetInfoAsync();

            Assert.NotNull(response);
            Assert.False(string.IsNullOrWhiteSpace(response.ProductName));
            Assert.False(string.IsNullOrWhiteSpace(response.Version));
        }
Пример #2
0
        internal async Task GetInfoAsync()
        {
            var response = await SqlGatewayApi.GetInfoAsync();

            if (response is null || string.IsNullOrWhiteSpace(response.Version))
            {
                throw new FlinkSqlException("connect gateway api failed");
            }

            Version = response.Version;
        }