Hi,
I would really love to take advantage of the resolveLinkTo option in the ClientAPI.
I know projections are currently disabled but is inserting my own links supported at this stage?
I found have that doing something like this works fine:
public static Task AppendLink(
IEventStoreConnection conn,
string stream,
int linkToEventNumber,
string linkToStream,
int expectedVersion)
{
var linkEventId = Guid.NewGuid();
var bodyString = string.Format("{0}@{1}", linkToEventNumber, linkToStream);
var linkEventBody = Encoding.UTF8.GetBytes(bodyString);
return conn.AppendToStreamAsync(
stream,
expectedVersion,
new EventData(linkEventId, “$>”, false, linkEventBody, null));
}
But wanted to check that this is supported and that I am not missing anything?
cheers
Andrew