Ejemplo n.º 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));
        }
Ejemplo n.º 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;
        }