static SerializationServices() { TypeNameRegistry.MapUnmapped(typeof(SquidexCoreModel).Assembly); TypeNameRegistry.MapUnmapped(typeof(SquidexEvents).Assembly); TypeNameRegistry.MapUnmapped(typeof(SquidexInfrastructure).Assembly); ConfigureJson(SerializerSettings, TypeNameHandling.Auto); BsonJsonConvention.Register(JsonSerializer.Create(SerializerSettings)); }
public void Map(TypeNameRegistry typeNameRegistry) { typeNameRegistry.MapUnmapped(typeof(T).Assembly); }