Skip to content

jdvor/msgpack-issue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Failing to serialize emitted class

To demonstrate the issue, simply run the console application.

No resolver "fits" proxy class emitted by this method.

The result is:

FormatterNotRegisteredException

MessagePackIssue.TestSubjects.__Concrete.IInitializeNewCustomer is not registered in resolver: MessagePack.Resolvers.CompositeResolver+CachingResolver
   at MessagePack.FormatterResolverExtensions.Throw(Type t, IFormatterResolver resolver)
   at MessagePack.MessagePackSerializer.Serialize[T](MessagePackWriter& writer, T value, MessagePackSerializerOptions options)

Questions:

  1. What prevents MessagePack to accept proxy just as it would instance of normal compile-time class?
  2. (alternatively) Is there something to be done in creating MessagePackSerializerOptions which would bypass the problem?

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages