Esempio n. 1
0
 public static IMessageBusBuilder AddMsgPack(this IMessageBusBuilder builder) => builder.AddSerializer <MsgPackSerializer>().AddSerializationAdapter <DefaultSerializationAdapter>();
Esempio n. 2
0
 public static IMessageBusBuilder AddProtobuf(this IMessageBusBuilder builder)
 {
     builder.AddSerializer <ProtobufSerializer>().AddSerializationAdapter <ProtobufSerializationAdapter>();
     return(builder);
 }
Esempio n. 3
0
 public static IMessageBusBuilder AddSerializer <T>(this IMessageBusBuilder builder) where T : ISerializer => builder.AddSerializer(Activator.CreateInstance <T>());