Exemple #1
0
 /// <summary>
 ///     To provide custom serialization using the <see cref="Newtonsoft.Json.JsonSerializer" />.
 /// </summary>
 /// <param name="configuration">The bus configuration to apply the serializer to.</param>
 /// <returns>Bus configuration.</returns>
 public static BusBuilderConfiguration WithJsonSerializer(this BusBuilderConfiguration configuration)
 {
     return(configuration.WithSerializer(new Nimbus.Serializers.Json.JsonSerializer()));
 }
Exemple #2
0
 /// <summary>
 ///     To provide custom serialization using the <see cref="Newtonsoft.Json.JsonSerializer" />.
 /// </summary>
 /// <param name="configuration">The bus configuration to apply the serializer to.</param>
 /// <param name="settings">To configure serialization settings.</param>
 /// <returns>Bus configuration.</returns>
 public static BusBuilderConfiguration WithJsonSerializer(this BusBuilderConfiguration configuration, JsonSerializerSettings settings)
 {
     return(configuration.WithSerializer(new JsonSerializer(settings)));
 }
Exemple #3
0
 /// <summary>
 ///     To provide custom serialization using the <see cref="Newtonsoft.Json.JsonSerializer" />.
 /// </summary>
 /// <param name="configuration">The bus configuration to apply the serializer to.</param>
 /// <param name="settings">To configure serialization settings.</param>
 /// <param name="formatting">To configure serialization formatting.</param>
 /// <returns>Bus configuration.</returns>
 public static BusBuilderConfiguration WithJsonSerializer(this BusBuilderConfiguration configuration, JsonSerializerSettings settings, Formatting formatting = Formatting.None)
 {
     return(configuration.WithSerializer(new Nimbus.Serializers.Json.JsonSerializer(settings, formatting)));
 }
 public static BusBuilderConfiguration WithProtoBufSerializer(this BusBuilderConfiguration configuration)
 {
     return(configuration.WithSerializer(new ProtoBufSerializer()));
 }