question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SubscriberClient.Create does not exist from the 1.0.0-beta20

See original GitHub issue

I want update my package : Google.Cloud.PubSub from 1.0.0-beta19 to 1.0.0. But after this upgrade SubscriberClient.Create doesn’t exist anymore. What I can use instead in my code ?

SubscriptionName subscriptionName = new SubscriptionName(projectId, subscriptionId);
SubscriberServiceApiClient subscriberClient = SubscriberServiceApiClient.Create(channel);
SubscriberClient subscriber = SubscriberClient.Create(subscriptionName, new[] { subscriberClient });

Do you have a link to a changelog?

Environment details

  • OS: Windows 10
  • .NET version: 2.1
  • Package name and version: Google.Cloud.PubSub 1.0.0

Thanks to everyone

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
chrisdunelmcommented, Jul 15, 2019

You can call the constructor directly:

SubscriberClient subscriber = new SubscriberClientImpl(subscriptionName, new[] { subscriberClient }, new Settings(), null);

Or don’t create a SubscriberServiceApiClient yourself; instead call SubscriberClient.CreateAsync.CreateAsync(subscriptionName);

0reactions
xavierlaffarguecommented, Aug 1, 2019

Yes @jskeet thank you =) Sorry for the delay

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cloud Pub/Sub v1 API - Class SubscriberClient (3.6.0)
This class implements the IAsyncDisposable interface. However, it is recommended to create a single SubscriberClient instance, and use it ...
Read more >
Error in trying to create a topic subscription in Google ...
I have successfully created a topic using the library (I can see it in the cloud console after creation). However I am having...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found