Exemple #1
0
        public async Task <IActionResult> GetVersionAsync()
        {
            using (var client = new ActorDbClient(_settings.Value.Host, _settings.Value.Port, _logger))
            {
                var version = await client.GetProtocolVersionAsync();

                return(Ok(new { Version = version }));
            }
        }
        public async Task Can_get_protocol_version()
        {
            using (IActorDbClient client = new ActorDbClient())
            {
                var version = await client.GetProtocolVersionAsync();

                Assert.NotNull(version);
                Assert.NotEmpty(version);
                _output.WriteLine(version);
            }
        }