FiapGames.Contracts
1.1.0
dotnet add package FiapGames.Contracts --version 1.1.0
NuGet\Install-Package FiapGames.Contracts -Version 1.1.0
<PackageReference Include="FiapGames.Contracts" Version="1.1.0" />
<PackageVersion Include="FiapGames.Contracts" Version="1.1.0" />
<PackageReference Include="FiapGames.Contracts" />
paket add FiapGames.Contracts --version 1.1.0
#r "nuget: FiapGames.Contracts, 1.1.0"
#:package FiapGames.Contracts@1.1.0
#addin nuget:?package=FiapGames.Contracts&version=1.1.0
#tool nuget:?package=FiapGames.Contracts&version=1.1.0
FiapGames.Contracts
Shared messaging contracts (integration events) used across the FiapGames microservices for asynchronous communication (e.g. via message broker).
Contracts
All contracts live under FiapGames.Contracts/IntegrationEvents/:
UserCreatedEvent— published when a new user is created.OrderPlacedEvent— published when an order is placed. Contains at leastUserId,GameIdandPrice.PaymentProcessedEvent— published when a payment finishes processing, withStatusset toApprovedorRejected.
Installing
Once published, the package is available on NuGet.org:
dotnet add package FiapGames.Contracts
Publishing / updating the NuGet package
This project is configured to pack on build (GeneratePackageOnBuild). To release a new version to nuget.org:
- Bump
<Version>inFiapGames.Contracts/FiapGames.Contracts.csproj(follow SemVer). - Clean the previous build output before rebuilding, to avoid packing stale/leftover artifacts:
dotnet clean FiapGames.Contracts/FiapGames.Contracts.csproj -c Release - Build an updated Release build with the bumped version:
Sincedotnet build FiapGames.Contracts/FiapGames.Contracts.csproj -c ReleaseGeneratePackageOnBuildis enabled, this also produces an updated.nupkg/.snupkgunderFiapGames.Contracts/bin/Release/. Alternatively,dotnet packcan be used instead ofdotnet build:dotnet pack FiapGames.Contracts/FiapGames.Contracts.csproj -c Release - Get/refresh an API key from nuget.org/account/apikeys (scoped to the
FiapGames.Contractspackage). - Push the package:
dotnet nuget push FiapGames.Contracts/bin/Release/FiapGames.Contracts.<version>.nupkg \ --api-key <YOUR_NUGET_API_KEY> \ --source https://api.nuget.org/v3/index.json - Commit and push the version bump, and tag the release:
git tag v<version> git push origin main --tags
Store the NuGet API key as a secret (e.g. GitHub Actions secret NUGET_API_KEY) if/when this is automated via CI instead of pushed manually.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. 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. |
-
net10.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.