public static void SetMainSerializer(this SettingsHolder settings, SerializationDefinition definition, SettingsHolder serializerSpecificSettings) { settings.Set(MainSerializerSettingsKey, Tuple.Create(definition, serializerSpecificSettings)); }
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))); }