Recreating deleted streams on v3.0.1

Hi All,

I’m investigating options for re-writing streams using soft-delete from v3.0.1 .net client. Below is a simple console app that should describe what I’m trying to achieve. The problem is that I’m getting StreamNotFound when I would expect to read event with data=“value2”.

private static void Main(string[] args)

{

IEventStoreConnection conn = StartConnection();

conn.AppendToStreamAsync(streamId, ExpectedVersion.NoStream, GetTestEventData(eventId, “value1”)).Wait();

conn.DeleteStreamAsync(streamId, ExpectedVersion.Any, hardDelete: false).Wait();

conn.AppendToStreamAsync(streamId, ExpectedVersion.NoStream, GetTestEventData(eventId, “value2”)).Wait();

var streamSlice = conn.ReadStreamEventsForwardAsync(streamId, 0, 200, false).Result;

Console.WriteLine(“Read Status: {0}”, streamSlice.Status);

}

``

Can anyone spot what I’m missing?