Hyperion
Hyperion copied to clipboard
TypeManifest still written after generic type declared in knowntypes
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?
What exception do you get at startup?