ShipitSmarter.Core.Messaging
8.0.22-20240311145707.pr51.sha-cbb10ea
See the version list below for details.
dotnet add package ShipitSmarter.Core.Messaging --version 8.0.22-20240311145707.pr51.sha-cbb10ea
NuGet\Install-Package ShipitSmarter.Core.Messaging -Version 8.0.22-20240311145707.pr51.sha-cbb10ea
<PackageReference Include="ShipitSmarter.Core.Messaging" Version="8.0.22-20240311145707.pr51.sha-cbb10ea" />
paket add ShipitSmarter.Core.Messaging --version 8.0.22-20240311145707.pr51.sha-cbb10ea
#r "nuget: ShipitSmarter.Core.Messaging, 8.0.22-20240311145707.pr51.sha-cbb10ea"
// Install ShipitSmarter.Core.Messaging as a Cake Addin #addin nuget:?package=ShipitSmarter.Core.Messaging&version=8.0.22-20240311145707.pr51.sha-cbb10ea&prerelease // Install ShipitSmarter.Core.Messaging as a Cake Tool #tool nuget:?package=ShipitSmarter.Core.Messaging&version=8.0.22-20240311145707.pr51.sha-cbb10ea&prerelease
ShipitSmarter.Core.Messaging
Defines the core objects, interfaces and implentations for handling messages.
Define a new message
A new message should implement the IMessageContract<TMessage>
interface, so the definition of how to serialize and deserialize the message is defined with the message itself. Implemting this interface also allows the new message to be handled by the Publisher and Subscriber packages.
This package provides a default implementation of the IMessageContract<TMessage>
, the JsonMessageContract<TMessage>
that will serialize the data as JSON. To create a new message using this implenation, simply extend from this class and define your data structure for the message:
using ShipitSmarter.Core.Messaging;
public class ExampleEvent : JsonMessageContract<ExampleEvent> {
public Guid ExampleId { get; }
public string SomeStringProperty { get; }
public int SomeIntProperty { get; }
public ExampleEvent(
Guid exampleId,
string someStringProperty,
int someIntProperty
)
{
ExampleId = exampleId;
SomeStringProperty = someStringProperty;
SomeIntProperty = someIntProperty;
}
}
Product | Versions 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. |
-
net8.0
- No dependencies.
NuGet packages (3)
Showing the top 3 NuGet packages that depend on ShipitSmarter.Core.Messaging:
Package | Downloads |
---|---|
ShipitSmarter.Core.Messaging.Publisher
A set of core functionalities used across ShipItSmarter for message sending functionalities |
|
ShipitSmarter.Core.Messaging.Subscriber
A set of core functionalities used across ShipItSmarter for message receiving functionalities |
|
Viya.Shipping.Events
Events that are sent out by Shipping |
GitHub repositories
This package is not used by any popular GitHub repositories.