Hi,
I’m trying to switch to version 3.0.1 (from 2.0.1) and run into issues with async Client.
it just hangs on an attempt to read or write. Seems like similar issue: https://groups.google.com/forum/#!topic/event-store/mdxbAZdOCxA but with older version.
Was working fine with previous version (was using non async api)
[Test]
public async Task Test()
{
var con = EventStoreConnection.Create(ConnectionSettings.Create()
.FailOnNoServerResponse()
.KeepReconnecting()
.KeepRetrying()
.SetDefaultUserCredentials(new UserCredentials("admin", "changeit")),
new IPEndPoint(IPAddress.Loopback, 1113));
await con.ConnectAsync();
//hangs on this line:
var slice = await con.ReadStreamEventsForwardAsync("devicetest4-123", 0, 100, false);
slice.Status.Should().Be(SliceReadStatus.Success);
slice.Events.Count().Should().BeGreaterThan(0);
con.Close();
}
Also have tried:
var slice = con.ReadStreamEventsForwardAsync(“devicetest4-123”, 0, 100, false).Result;
and
await Task.Run(
async () =>
{
slice = await con.ReadStreamEventsForwardAsync(“devicetest4-123”, 0, 100, false);
});
Same happens on writing attempt.
Is this a known issue, or it is me missing something silly, like default port has changed?