/// <summary>
 /// Provides a factory method for building a message serializer.
 /// </summary>
 public override Func <IMessageMapper, IMessageSerializer> Configure(ReadOnlySettings settings)
 {
     return(mapper =>
     {
         var readerCreator = settings.GetReaderCreator();
         var writerCreator = settings.GetWriterCreator();
         var serializerSettings = settings.GetSettings();
         var contentTypeKey = settings.GetContentTypeKey();
         return new JsonMessageSerializer(mapper, readerCreator, writerCreator, serializerSettings, contentTypeKey);
     });
 }
 /// <summary>
 /// <see cref="SerializationDefinition.Configure"/>
 /// </summary>
 public override Func<IMessageMapper, IMessageSerializer> Configure(ReadOnlySettings settings)
 {
     Guard.AgainstNull(settings, nameof(settings));
     return mapper =>
     {
         var readerCreator = settings.GetReaderCreator();
         var writerCreator = settings.GetWriterCreator();
         var options = settings.GetOptions();
         var contentTypeKey = settings.GetContentTypeKey();
         return new JsonMessageSerializer(mapper, options, contentTypeKey, readerCreator, writerCreator);
     };
 }