You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "Lixiang19980118 (via GitHub)" <gi...@apache.org> on 2025/07/18 08:08:11 UTC
[I] the api named 'consumer.Messages()' can not use in version '4.3.1' [pulsar-dotpulsar]
Lixiang19980118 opened a new issue, #271:
URL: https://github.com/apache/pulsar-dotpulsar/issues/271
Hi,
I cannot use this API. I find this api in the docs ,and the library i use is download from nuget, and the library's version is '**4.3.1**'.
It prompts me that **'IConsumer'** does not contain a definition for **'Messages'**.
``````
var consumer = client.NewConsumer()
.Topic(topic)
.SubscriptionName(subscriptionName)
.SubscriptionType(subscriptionType)
.Create();
await foreach (var message in consumer.Messages())
{
Console.WriteLine("Received: " + Encoding.UTF8.GetString(message.Data.ToArray()));
}
``````
I want to know what i should do next or how to do next, thank you!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] the api named 'consumer.Messages()' can not use in version '4.3.1' [pulsar-dotpulsar]
Posted by "blankensteiner (via GitHub)" <gi...@apache.org>.
blankensteiner commented on issue #271:
URL: https://github.com/apache/pulsar-dotpulsar/issues/271#issuecomment-3088403869
'Messages' (and 'Process') are extensions methods.
You need "using DotPulsar.Extensions;"
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] the api named 'consumer.Messages()' can not use in version '4.3.1' [pulsar-dotpulsar]
Posted by "blankensteiner (via GitHub)" <gi...@apache.org>.
blankensteiner closed issue #271: the api named 'consumer.Messages()' can not use in version '4.3.1'
URL: https://github.com/apache/pulsar-dotpulsar/issues/271
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] the api named 'consumer.Messages()' can not use in version '4.3.1' [pulsar-dotpulsar]
Posted by "blankensteiner (via GitHub)" <gi...@apache.org>.
blankensteiner commented on issue #271:
URL: https://github.com/apache/pulsar-dotpulsar/issues/271#issuecomment-3088559497
I have just tested it and it works just fine. You have to fill in a full bug report if you can't get it working.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] the api named 'consumer.Messages()' can not use in version '4.3.1' [pulsar-dotpulsar]
Posted by "Lixiang19980118 (via GitHub)" <gi...@apache.org>.
Lixiang19980118 commented on issue #271:
URL: https://github.com/apache/pulsar-dotpulsar/issues/271#issuecomment-3088516282
```
using DotPulsar;
using DotPulsar.Abstractions;
using DotPulsar.Extensions;
using DotPulsar.Internal;
```
Yes, I have referenced ‘Dotpulsar. Extensions’, but it is not working.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org