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