Exemple #1
0
        public static void JsonDeserialize(this IRocketMQConsumerConfigurator configurator, Action <JsonSerializerOptions> serializeConfigure = null)
        {
            var serializerOptions = new JsonSerializerOptions();

            serializeConfigure?.Invoke(serializerOptions);

            configurator.Deserialize(new RocketMQMessageJsonDeserializer(serializerOptions));
        }
Exemple #2
0
 public static void BindTypedMessageConsumer <TContent, TTypedMessageConsumer>(this IRocketMQConsumerConfigurator configurator,
                                                                               IMQBusRegistration registration)
     where TContent : class
     where TTypedMessageConsumer : class, IMQTypedMessageConsumer <MessageExt, TContent>
 {
     configurator.BindTypedMessageConsumer <MessageExt, TContent, TTypedMessageConsumer>(registration);
 }
Exemple #3
0
 public static void BindMessageConsumer <TMessageConsumer>(this IRocketMQConsumerConfigurator configurator, IMQBusRegistration registration)
     where TMessageConsumer : class, IMQMessageConsumer
 {
     configurator.BindMessageConsumer <MessageExt, TMessageConsumer>(registration);
 }