Hyperion icon indicating copy to clipboard operation
Hyperion copied to clipboard

TypeManifest still written after generic type declared in knowntypes

Open mrxrsd opened this issue 3 years ago • 1 comments

Hi,

I've tried to declare my generics type in known types but with no luck.

First I've tried that way:

public class KnownTypesProvider : IKnownTypesProvider {

private static List<Type> _knownTypes = new List<Type> {
      typeof(Akka.Persistence.Persistent),
      typeof(Event<>)
};
public IEnumerable<Type> GetKnownTypes() => _knownTypes;
}

But I got an exception on startup. So I've changed to:

public class KnownTypesProvider : IKnownTypesProvider {

private static List<Type> _knownTypes = new List<Type> {
      typeof(Akka.Persistence.Persistent),
      typeof(Event<TokenCreated>)
};
public IEnumerable<Type> GetKnownTypes() => _knownTypes;
}

Now my app are running but type manifest still be written . Is there any limitation about generics or I missed something?

mrxrsd avatar Jul 11 '21 20:07 mrxrsd

What exception do you get at startup?

Aaronontheweb avatar Aug 16 '21 16:08 Aaronontheweb