rebus-org / Rebus.GoogleCloudPubSub

:bus: Google Cloud Pub Sub transport for Rebus (under development)
Other
7 stars 5 forks source link

Support for running Rebus.GoogleCloudPubSub against local emulator #6

Closed torangel closed 2 years ago

torangel commented 2 years ago

Rebus is MIT-licensed. The code submitted in this pull request needs to carry the MIT license too. By leaving this text in, I hereby acknowledge that the code submitted in the pull request has the MIT license and can be merged with the Rebus codebase.

torangel commented 2 years ago

This to address

In all languages except for Java and C#, if you have set PUBSUB_EMULATOR_HOST as described in Setting environment variables, the Pub/Sub client libraries automatically call the API running in the local instance rather than Pub/Sub.

However, C# and Java client libraries require you to modify your code to use the emulator

https://cloud.google.com/pubsub/docs/emulator#accessing_environment_variables

mookid8000 commented 2 years ago

Cool 🙂 let me know when the PR is ready for review

torangel commented 2 years ago

Should be ready now :) Based on learnings from hosting Rebus in GCE I made two more modifications as shown in the last commits:

mookid8000 commented 2 years ago

Coool! It's out as Rebus.GoogleCloudPubSub 0.0.6 on Nuget.org now 🙂

Thanks for contributing ❤️