Fcg.Core.SharedContracts 1.1.4

dotnet add package Fcg.Core.SharedContracts --version 1.1.4
                    
NuGet\Install-Package Fcg.Core.SharedContracts -Version 1.1.4
                    
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="Fcg.Core.SharedContracts" Version="1.1.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Fcg.Core.SharedContracts" Version="1.1.4" />
                    
Directory.Packages.props
<PackageReference Include="Fcg.Core.SharedContracts" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Fcg.Core.SharedContracts --version 1.1.4
                    
#r "nuget: Fcg.Core.SharedContracts, 1.1.4"
                    
#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.
#:package Fcg.Core.SharedContracts@1.1.4
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Fcg.Core.SharedContracts&version=1.1.4
                    
Install as a Cake Addin
#tool nuget:?package=Fcg.Core.SharedContracts&version=1.1.4
                    
Install as a Cake Tool

Fcg.Core.SharedContracts

Este pacote contém todos os Contratos de Mensagens (Eventos e Comandos) compartilhados entre os microsserviços do Fiap Cloud Games (FCG).

🎯 Objetivo

Garantir o alinhamento de comunicação em uma arquitetura distribuída e assíncrona. Quando um serviço precisa publicar ou consumir uma mensagem (via RabbitMQ, Azure Service Bus, Kafka, etc), ele utiliza os contratos fortemente tipados deste pacote.

📦 Conteúdo do Pacote

O pacote concentra:

  • Eventos de Integração (Integration Events): Eventos publicados em Message Brokers que indicam que algo aconteceu no sistema.
  • Comandos (Commands): Mensagens direcionadas a filas para execução de ações específicas.
  • Interfaces e Base Messages: Estrutura base de propriedades (Id da Mensagem, Data de Criação) que todas as mensagens devem ter.

🚀 Como Instalar

Instale através do NuGet:

.NET CLI

dotnet add package Fcg.Core.SharedContracts

Package Manager

Install-Package Fcg.Core.SharedContracts

💻 Exemplo de Uso

Referencie nos seus projetos de Worker ou API para publicar e consumir eventos padronizados.

using Fcg.Core.SharedContracts.MessageContracts;

public class OrderEvent : IOrderPlacedEvent
{
    public Guid PedidoId { get; set; }
    public decimal ValorTotal { get; set; }
}

🤝 Como Contribuir

Repositório no GitHub

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net9.0

    • No dependencies.

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
1.1.4 151 8/5/2026
1.1.3 111 8/5/2026
1.1.2 122 8/5/2026 1.1.2 is deprecated because it has critical bugs.
1.1.1 113 8/4/2026
1.1.0 119 7/23/2026
1.0.9 111 7/23/2026
1.0.8 104 7/23/2026
1.0.7 104 7/23/2026
1.0.6 99 7/21/2026
1.0.5 104 7/21/2026
1.0.4 128 7/18/2026 1.0.4 is deprecated because it has critical bugs.
1.0.3 114 7/18/2026
1.0.2 106 7/18/2026
1.0.1 108 7/16/2026
1.0.0 126 7/13/2026