ShipitSmarter.Core.Messaging.Subscriber 8.0.25-20240315091624.pr55.sha-4dd5228

This is a prerelease version of ShipitSmarter.Core.Messaging.Subscriber.
There is a newer version of this package available.
See the version list below for details.
dotnet add package ShipitSmarter.Core.Messaging.Subscriber --version 8.0.25-20240315091624.pr55.sha-4dd5228                
NuGet\Install-Package ShipitSmarter.Core.Messaging.Subscriber -Version 8.0.25-20240315091624.pr55.sha-4dd5228                
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="ShipitSmarter.Core.Messaging.Subscriber" Version="8.0.25-20240315091624.pr55.sha-4dd5228" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ShipitSmarter.Core.Messaging.Subscriber --version 8.0.25-20240315091624.pr55.sha-4dd5228                
#r "nuget: ShipitSmarter.Core.Messaging.Subscriber, 8.0.25-20240315091624.pr55.sha-4dd5228"                
#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 ShipitSmarter.Core.Messaging.Subscriber as a Cake Addin
#addin nuget:?package=ShipitSmarter.Core.Messaging.Subscriber&version=8.0.25-20240315091624.pr55.sha-4dd5228&prerelease

// Install ShipitSmarter.Core.Messaging.Subscriber as a Cake Tool
#tool nuget:?package=ShipitSmarter.Core.Messaging.Subscriber&version=8.0.25-20240315091624.pr55.sha-4dd5228&prerelease                

ShipitSmarter.Core.Messaging.Subscriber

Defines interfaces and implementations for receiving messages.

IMessageHandler

The client will require an implementation of the IMessageHandler. The recommended way of implementing this interface is by creating a control flow based on the Message.Subject:

public class MessageHandler : IMessageHandler
{
    public MessageHandler(
        // Inject handlers and other dependencies
    )

    public Task Handle(Message message) {
        if (MyMessage.Subject == message.Subject) {
            var myMessage = MyMessage.Deserialize(message);
            return myMessageHandler.Handle(myMessage);
        }
        if (MyOtherMessage.Subject == message.Subject) {
            var myOtherMessage = MyOtherMessage.Deserialize(message);
            return myOtherMessageHandler.Handle(myOtherMessage);
        }
        ...
    }
}

GoogleSubscriberClient

The subscriber client is implemented as a BackgroundService. You have to register it together with an implementation of IMessageHandler, TMessageHandler.

services.AddGoogleSubscriberClient<TMessageHandler>("project-id", "subscription-id");
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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. 
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
8.0.30 122 4/8/2024
8.0.30-20240408113247.pr59... 52 4/8/2024
8.0.29 108 4/8/2024
8.0.29-20240408082248.pr60... 56 4/8/2024
8.0.29-20240405125807.pr59... 50 4/5/2024
8.0.29-20240405123857.pr59... 52 4/5/2024
8.0.28 112 4/5/2024
8.0.28-20240405095528.pr58... 51 4/5/2024
8.0.27 104 4/5/2024
8.0.27-20240404132455.pr57... 55 4/4/2024
8.0.26 126 3/15/2024
8.0.25 116 3/15/2024
8.0.25-20240315091624.pr55... 57 3/15/2024
8.0.24 113 3/14/2024
8.0.24-20240314103121.pr54... 57 3/14/2024
8.0.24-20240314102733.pr54... 49 3/14/2024
8.0.23 113 3/14/2024
8.0.23-20240313154945.pr53... 55 3/13/2024
8.0.22 121 3/13/2024
8.0.22-20240313111340.pr52... 50 3/13/2024
8.0.22-20240312092108.pr52... 51 3/12/2024
8.0.22-20240311145707.pr51... 51 3/11/2024
8.0.22-20240311145440.pr51... 49 3/11/2024
8.0.21 92 3/11/2024
8.0.21-20240311073331.pr50... 53 3/11/2024
8.0.21-20240308155628.pr50... 55 3/8/2024
8.0.21-20240308155514.pr50... 50 3/8/2024
8.0.20 127 3/7/2024
8.0.20-20240306102724.pr49... 58 3/6/2024
8.0.20-20240306074606.pr49... 57 3/6/2024
8.0.20-20240305130535.pr49... 45 3/5/2024
8.0.20-20240305125122.pr49... 55 3/5/2024
8.0.20-20240305102258.pr49... 51 3/5/2024
8.0.20-20240305073153.pr49... 68 3/5/2024
8.0.20-20240304150120.pr49... 57 3/4/2024
8.0.20-20240304141818.pr49... 59 3/4/2024
8.0.19 101 2/28/2024
8.0.19-20240228151419.pr48... 55 2/28/2024
8.0.19-20240228145935.pr48... 52 2/28/2024
8.0.18 116 2/28/2024
8.0.18-20240228102420.pr47... 54 2/28/2024
8.0.17 124 2/27/2024
8.0.17-20240227140309.pr46... 55 2/27/2024
8.0.16 119 2/26/2024
8.0.15 119 2/26/2024
8.0.15-20240226090939.pr43... 47 2/26/2024
8.0.15-20240226085624.pr44... 48 2/26/2024
8.0.15-20240223160221.pr43... 54 2/23/2024
8.0.15-20240223155350.pr43... 54 2/23/2024
8.0.15-20240223154647.pr43... 52 2/23/2024
8.0.15-20240223154022.pr43... 57 2/23/2024
8.0.14 132 2/22/2024
8.0.14-20240222093550.pr41... 52 2/22/2024
8.0.13 120 2/22/2024
8.0.13-20240222092403.pr40... 63 2/22/2024