public ConsumerMessageSyncHandler(
     ILogger logger,
     NATSConsumerSubscriptionConfig subscriptionConfig,
     Action <NATSJetStreamMsgContent> messageHandler,
     Func <NATSConsumerSubscriptionConfig, MessagePacket, MessageAck, ValueTask> messageAckCallback)
     : base(logger, subscriptionConfig, messageAckCallback)
 {
     _messageHandler = messageHandler;
 }
示例#2
0
 public ConsumerMessageHandler(
     ILogger logger,
     NATSConsumerSubscriptionConfig subscriptionConfig,
     Func <NATSConsumerSubscriptionConfig, MessagePacket, MessageAck, ValueTask> messageAckCallback)
     : base(logger)
 {
     _subscriptionConfig = subscriptionConfig;
     _messageAckCallback = messageAckCallback;
     SubscribeId         = subscriptionConfig.SubscribeId;
 }