Albatross.Messaging.CodeGen 8.0.1

Prefix Reserved
This package has a SemVer 2.0.0 package version: 8.0.1+0cc0252.
dotnet add package Albatross.Messaging.CodeGen --version 8.0.1                
NuGet\Install-Package Albatross.Messaging.CodeGen -Version 8.0.1                
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="Albatross.Messaging.CodeGen" Version="8.0.1">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Albatross.Messaging.CodeGen --version 8.0.1                
#r "nuget: Albatross.Messaging.CodeGen, 8.0.1"                
#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 Albatross.Messaging.CodeGen as a Cake Addin
#addin nuget:?package=Albatross.Messaging.CodeGen&version=8.0.1

// Install Albatross.Messaging.CodeGen as a Cake Tool
#tool nuget:?package=Albatross.Messaging.CodeGen&version=8.0.1                

Usage: Reference the project as an analyzer:

<PackageReference Include="Albatross.Messaging.CodeGen" Version="7.3.0" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />

If the referenced project has a partial interface that start with I and ends with Command, the code generator will find any concrete class that implements the inteface and add the JsonDerivedType attribute for that class to the interface.

For example, if you have the following interface:

public partial interface IMyCommand
{
}

And the following class:

public class MyCommand : IMyCommand
{
}

The code generator will create a partial interface of the same name and add the following attribute to the interface:

[JsonDerivedType(typeof(MyCommand), "MyCommand")]
public partial interface IMyCommand
{}

This allows the proper json serialization of the interface IMyCommand. Note that the type discriminator is the name of the class without the namespace.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

  • .NETStandard 2.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Albatross.Messaging.CodeGen:

Package Downloads
Albatross.Messaging

A durable messaging library built on top of ZeroMQ

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
8.0.1 66 3/9/2025
7.7.2 180 3/5/2025