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));
        }
Exemple #2
0
 public void Map(TypeNameRegistry typeNameRegistry)
 {
     typeNameRegistry.MapUnmapped(typeof(T).Assembly);
 }