Skip to content

TypeManifest still written after generic type declared in knowntypes #240

Open
@mrxrsd

Description

@mrxrsd

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?

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