Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for IDictionary #137

Closed
SIGAN opened this issue Dec 17, 2016 · 3 comments
Closed

Support for IDictionary #137

SIGAN opened this issue Dec 17, 2016 · 3 comments

Comments

@SIGAN
Copy link

SIGAN commented Dec 17, 2016

Without ability to serialize dictionaries it's worthless

@rogeralsing
Copy link
Collaborator

Wire supports normal .NET Dictionary class, System.Collections.Immutable.Immutabledictionary and F# maps.

Is it a custom dictionary you are trying to serialie?

@ismaelhamed
Copy link

In my case, the error occurs when declaring properties or fields with an interface instead of the actual concrete implementation, ex.:

private readonly IImmutableDictionary<Guid, Work> AcceptedWork = 
    ImmutableDictionary<Guid, Work>.Empty;

... then a get

["Wire.ValueSerializers.UnsupportedTypeException: Could not load type 'System.Collections.Immutable.IImmutableDictionary' from assembly 'System.Collections.Immutable'.
at Wire.ValueSerializers.UnsupportedTypeSerializer.WriteManifest(Stream stream, SerializerSession session)
at Wire.Serializer.Serialize(Object obj, Stream stream)
at Akka.Serialization.WireSerializer.ToBinary(Object obj)

@ismaelhamed
Copy link

Ok, this seems to be related to #127

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants