DishHome.PPV.Contracts
1.0.2
.NET 9.0
This package targets .NET 9.0. The package is compatible with this framework or higher.
.NET Standard 2.0
This package targets .NET Standard 2.0. The package is compatible with this framework or higher.
.NET Framework 4.8
This package targets .NET Framework 4.8. The package is compatible with this framework or higher.
dotnet add package DishHome.PPV.Contracts --version 1.0.2
NuGet\Install-Package DishHome.PPV.Contracts -Version 1.0.2
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="DishHome.PPV.Contracts" Version="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DishHome.PPV.Contracts" Version="1.0.2" />
<PackageReference Include="DishHome.PPV.Contracts" />
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 DishHome.PPV.Contracts --version 1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: DishHome.PPV.Contracts, 1.0.2"
#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 DishHome.PPV.Contracts@1.0.2
#: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=DishHome.PPV.Contracts&version=1.0.2
#tool nuget:?package=DishHome.PPV.Contracts&version=1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
PPV.Contracts
Shared event contracts for the PPV Activation Consumer system. This library provides strongly-typed message contracts for RabbitMQ/MassTransit integration across services in the PPV activation ecosystem.
Installation
dotnet add package PPV.Contracts
Usage
using PPV.Contracts.Events;
// Publishing (Producer side)
await publishEndpoint.Publish(new PPVRechargeSuccessEvent
{
RequestId = Guid.NewGuid(),
CustomerId = 12345,
STBNumber = "STB-ABC-001",
EventScheduleId = 99,
MobileNumber = "09171234567",
RechargeDate = DateTime.UtcNow,
Amount = 299.00m,
TransactionId = "TXN-2024-001",
Username = "api_user",
Password = "api_pass",
OptionalToken = null
});
// Consuming (Consumer side — implement IConsumer<PPVRechargeSuccessEvent>)
public class PPVRechargeSuccessConsumer : IConsumer<PPVRechargeSuccessEvent>
{
public async Task Consume(ConsumeContext<PPVRechargeSuccessEvent> context)
{
var evt = context.Message;
// process...
}
}
Events
| Event | Description |
|---|---|
PPVRechargeSuccessEvent |
Fired when a customer's PPV payment is successfully processed. Triggers activation and SMS. |
Versioning
This library follows Semantic Versioning.
- Major — Breaking changes to contract shape
- Minor — New optional fields or new events
- Patch — Documentation, metadata, non-breaking fixes
⚠️ Important: Never remove or rename existing fields in a published contract version. Add new fields as nullable/optional for backward compatibility.
NuGet Publishing
# Pack
dotnet pack PPV.Contracts/PPV.Contracts.csproj -c Release
# Push to NuGet.org
dotnet nuget push PPV.Contracts/bin/Release/PPV.Contracts.1.0.0.nupkg \
--api-key YOUR_API_KEY \
--source https://api.nuget.org/v3/index.json
# Push symbols
dotnet nuget push PPV.Contracts/bin/Release/PPV.Contracts.1.0.0.snupkg \
--api-key YOUR_API_KEY \
--source https://api.nuget.org/v3/index.json
# Push to private feed (e.g., Azure Artifacts)
dotnet nuget push PPV.Contracts/bin/Release/PPV.Contracts.1.0.0.nupkg \
--api-key YOUR_API_KEY \
--source https://pkgs.dev.azure.com/yourorg/_packaging/yourfeed/nuget/v3/index.json
License
MIT
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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. 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. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 is compatible. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.8
- System.Text.Json (>= 6.0.0)
-
.NETStandard 2.0
- System.Text.Json (>= 6.0.0)
-
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.