Skip to content

The ToStorageEvent method fails if the event data assembly is different #14

@ElasticCoder

Description

@ElasticCoder

The ToStorageEvent method contains the line of code

object body = Body.ToObject(Type.GetType(BodyType));

And this takes a fully qualified type name from the metadata. If the writer uses an event defined in an assembly v1 but the reader uses an event defined in assembly v2 the code fails. This means the writer and reader must be kept in line at all times.

We propose that either version numbers are ignored, or better still, an assembly resolver function can be specified to determine how to load the assemblies that contain the event types.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions