Beispiel #1
0
        internal static int RegisterElement <T, TElement>()
        {
            var i = 0;

            i += AotConfig.RegisterSerializers <TElement>();
            AotConfig.RegisterElement <T, TElement, JsonTypeSerializer>();
            AotConfig.RegisterElement <T, TElement, JsvTypeSerializer>();
            return(i);
        }
Beispiel #2
0
 public static void RegisterTypeForAot <T>()
 {
     AotConfig.RegisterSerializers <T>();
 }
Beispiel #3
0
 public static void RegisterElement <T, TElement>()
 {
     AotConfig.RegisterSerializers <TElement>();
     AotConfig.RegisterElement <T, TElement, Text.Json.JsonTypeSerializer>();
     AotConfig.RegisterElement <T, TElement, Text.Jsv.JsvTypeSerializer>();
 }