/// <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);
     });
 }