/// <summary>
 /// Configures Rebus to serialize messages using .NET's <see cref="BinaryFormatter"/>.
 /// </summary>
 public static void UseBinarySerializer(this SerializationConfigurer configurer)
 {
     configurer.Use(new BinaryMessageSerializer());
 }
 /// <summary>
 /// Configures Rebus to serialize messages using the internal JSON serializer.
 /// </summary>
 public static void UseJsonSerializer(this SerializationConfigurer configurer)
 {
     configurer.Use(new JsonMessageSerializer());
 }