Rebus.GoogleCloudPubSub 0.0.10

There is a newer version of this package available.
See the version list below for details.
dotnet add package Rebus.GoogleCloudPubSub --version 0.0.10                
NuGet\Install-Package Rebus.GoogleCloudPubSub -Version 0.0.10                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Rebus.GoogleCloudPubSub" Version="0.0.10" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Rebus.GoogleCloudPubSub --version 0.0.10                
#r "nuget: Rebus.GoogleCloudPubSub, 0.0.10"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Rebus.GoogleCloudPubSub as a Cake Addin
#addin nuget:?package=Rebus.GoogleCloudPubSub&version=0.0.10

// Install Rebus.GoogleCloudPubSub as a Cake Tool
#tool nuget:?package=Rebus.GoogleCloudPubSub&version=0.0.10                

Rebus.GoogleCloudPubSub

install from nuget

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)

alternate text is missing from this package README image


Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.0.12 277 10/1/2024
0.0.11 118 9/12/2024
0.0.10 182 9/10/2024
0.0.9 116 9/5/2024
0.0.8 3,192 11/15/2023
0.0.7 26,086 9/27/2022
0.0.6 8,657 3/21/2022
0.0.5 1,513 10/14/2021
0.0.4 2,174 10/7/2021
0.0.3 1,153 10/4/2021
0.0.2 386 9/22/2021
0.0.1 423 9/15/2021