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