ShipitSmarter.Core.Messaging.Subscriber 8.0.30

dotnet add package ShipitSmarter.Core.Messaging.Subscriber --version 8.0.30                
NuGet\Install-Package ShipitSmarter.Core.Messaging.Subscriber -Version 8.0.30                
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.30" />                
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.30                
#r "nuget: ShipitSmarter.Core.Messaging.Subscriber, 8.0.30"                
#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.30

// Install ShipitSmarter.Core.Messaging.Subscriber as a Cake Tool
#tool nuget:?package=ShipitSmarter.Core.Messaging.Subscriber&version=8.0.30                

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 127 4/8/2024
8.0.30-20240408113247.pr59... 53 4/8/2024
8.0.29 111 4/8/2024
8.0.29-20240408082248.pr60... 57 4/8/2024
8.0.29-20240405125807.pr59... 51 4/5/2024
8.0.29-20240405123857.pr59... 53 4/5/2024
8.0.28 117 4/5/2024
8.0.28-20240405095528.pr58... 52 4/5/2024
8.0.27 110 4/5/2024
8.0.27-20240404132455.pr57... 58 4/4/2024
8.0.26 130 3/15/2024
8.0.25 120 3/15/2024
8.0.25-20240315091624.pr55... 58 3/15/2024
8.0.24 117 3/14/2024
8.0.24-20240314103121.pr54... 58 3/14/2024
8.0.24-20240314102733.pr54... 50 3/14/2024
8.0.23 117 3/14/2024
8.0.23-20240313154945.pr53... 58 3/13/2024
8.0.22 124 3/13/2024
8.0.22-20240313111340.pr52... 51 3/13/2024
8.0.22-20240312092108.pr52... 54 3/12/2024
8.0.22-20240311145707.pr51... 56 3/11/2024
8.0.22-20240311145440.pr51... 52 3/11/2024
8.0.21 99 3/11/2024
8.0.21-20240311073331.pr50... 58 3/11/2024
8.0.21-20240308155628.pr50... 56 3/8/2024
8.0.21-20240308155514.pr50... 51 3/8/2024
8.0.20 130 3/7/2024
8.0.20-20240306102724.pr49... 59 3/6/2024
8.0.20-20240306074606.pr49... 58 3/6/2024
8.0.20-20240305130535.pr49... 48 3/5/2024
8.0.20-20240305125122.pr49... 58 3/5/2024
8.0.20-20240305102258.pr49... 52 3/5/2024
8.0.20-20240305073153.pr49... 69 3/5/2024
8.0.20-20240304150120.pr49... 58 3/4/2024
8.0.20-20240304141818.pr49... 60 3/4/2024
8.0.19 106 2/28/2024
8.0.19-20240228151419.pr48... 56 2/28/2024
8.0.19-20240228145935.pr48... 53 2/28/2024
8.0.18 119 2/28/2024
8.0.18-20240228102420.pr47... 55 2/28/2024
8.0.17 127 2/27/2024
8.0.17-20240227140309.pr46... 56 2/27/2024
8.0.16 122 2/26/2024
8.0.15 122 2/26/2024
8.0.15-20240226090939.pr43... 48 2/26/2024
8.0.15-20240226085624.pr44... 51 2/26/2024
8.0.15-20240223160221.pr43... 55 2/23/2024
8.0.15-20240223155350.pr43... 55 2/23/2024
8.0.15-20240223154647.pr43... 53 2/23/2024
8.0.15-20240223154022.pr43... 58 2/23/2024
8.0.14 135 2/22/2024
8.0.14-20240222093550.pr41... 53 2/22/2024
8.0.13 123 2/22/2024
8.0.13-20240222092403.pr40... 64 2/22/2024