public static void SetMainSerializer(this SettingsHolder settings, SerializationDefinition definition, SettingsHolder serializerSpecificSettings)
 {
     settings.Set(MainSerializerSettingsKey, Tuple.Create(definition, serializerSpecificSettings));
 }
Exemple #2
0
 public static void SetMainSerializer(this SettingsHolder settings, SerializationDefinition definition, SettingsHolder serializerSpecificSettings)
 {
     settings.Set(MainSerializerSettingsKey, Tuple.Create(definition, serializerSpecificSettings));
 }
Exemple #3
0
 static void SetMainSerializer(SettingsHolder settings, SerializationDefinition definition)
 {
     settings.SetDefault("MainSerializer", Tuple.Create(definition, new SettingsHolder()));
 }
 static MessageWrapperSerializer BuildSerializer(SerializationDefinition userWrapperSerializationDefinition, ReadOnlySettings settings)
 {
     return(userWrapperSerializationDefinition != null
         ? new MessageWrapperSerializer(userWrapperSerializationDefinition.Configure(settings).Invoke(MessageWrapperSerializer.GetMapper()))
         : new MessageWrapperSerializer(GetMainSerializerHack(MessageWrapperSerializer.GetMapper(), settings)));
 }