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