ShipitSmarter.Core.Messaging.Subscriber 8.0.23

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.23                
NuGet\Install-Package ShipitSmarter.Core.Messaging.Subscriber -Version 8.0.23                
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.23" />                
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.23                
#r "nuget: ShipitSmarter.Core.Messaging.Subscriber, 8.0.23"                
#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.23

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

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