Rebus.GoogleCloudPubSub
0.0.12
dotnet add package Rebus.GoogleCloudPubSub --version 0.0.12
NuGet\Install-Package Rebus.GoogleCloudPubSub -Version 0.0.12
<PackageReference Include="Rebus.GoogleCloudPubSub" Version="0.0.12" />
paket add Rebus.GoogleCloudPubSub --version 0.0.12
#r "nuget: Rebus.GoogleCloudPubSub, 0.0.12"
// Install Rebus.GoogleCloudPubSub as a Cake Addin #addin nuget:?package=Rebus.GoogleCloudPubSub&version=0.0.12 // Install Rebus.GoogleCloudPubSub as a Cake Tool #tool nuget:?package=Rebus.GoogleCloudPubSub&version=0.0.12
Rebus.GoogleCloudPubSub
Provides a Google Cloud Pub/Sub-based transport implementation for Rebus.
It's just
// ensure that the GOOGLE_APPLICATION_CREDENTIALS
// environment variable has been set, and then:
Configure.With(...)
.Transport(t => t.UsePubSub("your_queue"))
.(...)
.Start();
or
// ensure that the GOOGLE_APPLICATION_CREDENTIALS
// environment variable has been set, and then:
var bus = Configure.With(...)
.Transport(t => t.UsePubSubAsOneWayClient())
.(...)
.Start();
and off you go! 🚀
Development and testing
Do the changes you please and make sure all tests run with success. Most tests have a dependency on GoogleCloudPubSub. A dependency which can be resolved either by having a pub-sub project in Google Cloud, or by running a local emulator.
Run tests using docker-compose and a local emulator
The docker-compose setup takes care of all necessities and outputs the test results to screen and a to current directory in JUnit Xml format.
docker-compose build
docker-compose up
Expected output:
tests_1 | JunitXML Logger - Results File: /tmp/testresults.run/Rebus.GoogleCloudPubSub.Tests-test-result.xml
tests_1 |
tests_1 | Passed! - Failed: 0, Passed: 15, Skipped: 0, Total: 15, Duration: 14 m 54 s - /app/Rebus.GoogleCloudPubSub.Tests/bin/Debug/net6.0/Rebus.GoogleCloudPubSub.Tests.dll (net6.0)
rebusgooglecloudpubsub_tests_1 exited with code 0
Run tests using a local emulator
Run the pubsub emulator as you please. Make sure to put appropriate values into the environment variables before running the tests:
PUBSUB_EMULATOR_HOST
(the address the emulator is accessible at)PUBSUB_PROJECT_ID
(the project id the emulator is configured with)
Run tests using GooglePubSub cloud service
Make sure the environment variable GOOGLE_APPLICATION_CREDENTIALS
points at your local google-application-credentials file.
(If both PUBSUB_EMULATOR_HOST
and PUBSUB_PROJECT_ID
environment variables are set, setting the GOOGLE_APPLICATION_CREDENTIALS
will have no effect)
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Google.Cloud.PubSub.V1 (>= 3.16.0)
- rebus (>= 8.4.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.