All,
Is the website documentation out of date, or, is the Nuget Package for the .NET Client API not right, or, have I just done something wrong?
**Nuget Package 1.1.0-RC1 **
var connection = EventStore.ClientAPI.EventStoreConnection.Create();
var ipEndpoint = new IPEndPoint(IPAddress.Loopback, 1113);
connection.Connect(ipEndpoint);
var id = new Guid("{B08500AE-8E45-4ec6-9670-6AF45E1D9182}");
connection.CreateStream(“MyStream”, id, false, new byte[] { });
connection.AppendToStream(
“MyStream”,
1,
new EventData(Guid.NewGuid(), “Test2”, false, new byte[] { 1, 2, 3 }, new byte[] { 1, 2, 3 }));
connection.Close();
Website Documentation
EventStore.Configure(Configure.AsDefault());
string stream = "NewStream-" + Guid.NewGuid();
EventStore.CreateStream(stream, new byte[] {1,2,3});
EventStore.AppendToStream(stream, 0, new [] { new TestEvent("Some data") });
Regards,
Ben