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 81 4/8/2024
8.0.30-20240408113247.pr59... 39 4/8/2024
8.0.29 82 4/8/2024
8.0.29-20240408082248.pr60... 42 4/8/2024
8.0.29-20240405125807.pr59... 38 4/5/2024
8.0.29-20240405123857.pr59... 41 4/5/2024
8.0.28 75 4/5/2024
8.0.28-20240405095528.pr58... 39 4/5/2024
8.0.27 77 4/5/2024
8.0.27-20240404132455.pr57... 43 4/4/2024
8.0.26 87 3/15/2024
8.0.25 87 3/15/2024
8.0.25-20240315091624.pr55... 46 3/15/2024
8.0.24 81 3/14/2024
8.0.24-20240314103121.pr54... 46 3/14/2024
8.0.24-20240314102733.pr54... 39 3/14/2024
8.0.23 83 3/14/2024
8.0.23-20240313154945.pr53... 44 3/13/2024
8.0.22 89 3/13/2024
8.0.22-20240313111340.pr52... 39 3/13/2024
8.0.22-20240312092108.pr52... 40 3/12/2024
8.0.22-20240311145707.pr51... 42 3/11/2024
8.0.22-20240311145440.pr51... 38 3/11/2024
8.0.21 64 3/11/2024
8.0.21-20240311073331.pr50... 44 3/11/2024
8.0.21-20240308155628.pr50... 44 3/8/2024
8.0.21-20240308155514.pr50... 39 3/8/2024
8.0.20 97 3/7/2024
8.0.20-20240306102724.pr49... 47 3/6/2024
8.0.20-20240306074606.pr49... 46 3/6/2024
8.0.20-20240305130535.pr49... 35 3/5/2024
8.0.20-20240305125122.pr49... 45 3/5/2024
8.0.20-20240305102258.pr49... 41 3/5/2024
8.0.20-20240305073153.pr49... 55 3/5/2024
8.0.20-20240304150120.pr49... 45 3/4/2024
8.0.20-20240304141818.pr49... 47 3/4/2024
8.0.19 75 2/28/2024
8.0.19-20240228151419.pr48... 44 2/28/2024
8.0.19-20240228145935.pr48... 42 2/28/2024
8.0.18 85 2/28/2024
8.0.18-20240228102420.pr47... 40 2/28/2024
8.0.17 90 2/27/2024
8.0.17-20240227140309.pr46... 44 2/27/2024
8.0.16 78 2/26/2024
8.0.15 91 2/26/2024
8.0.15-20240226090939.pr43... 35 2/26/2024
8.0.15-20240226085624.pr44... 37 2/26/2024
8.0.15-20240223160221.pr43... 43 2/23/2024
8.0.15-20240223155350.pr43... 44 2/23/2024
8.0.15-20240223154647.pr43... 41 2/23/2024
8.0.15-20240223154022.pr43... 45 2/23/2024
8.0.14 102 2/22/2024
8.0.14-20240222093550.pr41... 45 2/22/2024
8.0.13 91 2/22/2024
8.0.13-20240222092403.pr40... 55 2/22/2024