You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I may be misunderstanding this but if you wanted to supply your own custom FsCodec to Equinox you can FsCodec.Codec.Create(encoder, decoder). However, Equinox expects a a 'Format of byte[] ... i.e. IEventCodec<'Event,byte [], 'Context> but it seems that FsCodec.Codec.Create will only allow you to construct a IEventCodec<'Event, string, 'Context>. Notice string vs byte [].
I am sure the work around is to fully implement IEventCodec, but would be nice to have a equinox compatible short hand constructor.
The text was updated successfully, but these errors were encountered:
Lets leave this ticket open until someone gets around to planting a mention of it in the README.md (arguably it should go in Equinox's DOCUMENTATION.md) ;)
I may be misunderstanding this but if you wanted to supply your own custom FsCodec to Equinox you can
FsCodec.Codec.Create(encoder, decoder)
. However, Equinox expects a a'Format
ofbyte[]
... i.e.IEventCodec<'Event,byte [], 'Context>
but it seems thatFsCodec.Codec.Create
will only allow you to construct aIEventCodec<'Event, string, 'Context>
. Noticestring
vsbyte []
.I am sure the work around is to fully implement
IEventCodec
, but would be nice to have a equinox compatible short hand constructor.The text was updated successfully, but these errors were encountered: