This is a completely unverified conjecture based on a very brief look at github, but it looks like you want to use the posting API to specify a custom serializer, for example:
var store = Wireup.Init() .UsingSqlPersistence("Name Of EventStore ConnectionString In Config File") .InitializeStorageEngine() .UsingCustomSerialization(mySerializer) ... etc
where mySerializer is an instance of a type that implements the ISerialize interface. Seems like this should work:
class ProtobufSerializer : EventStore.Serialization.ISerialize { public void Serialize<T>(Stream output, T graph) { ProtoBuf.Serializer.Serialize<T>(output, graph); } public T Deserialize<T>(Stream input) { return ProtoBuf.Serializer.Deserialize<T>(input); } }
(so obviously mySerializer here will be new ProtobufSerializer() )
source share