Intropy.Contracts 0.1.0

dotnet add package Intropy.Contracts --version 0.1.0
                    
NuGet\Install-Package Intropy.Contracts -Version 0.1.0
                    
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="Intropy.Contracts" Version="0.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Intropy.Contracts" Version="0.1.0" />
                    
Directory.Packages.props
<PackageReference Include="Intropy.Contracts" />
                    
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 Intropy.Contracts --version 0.1.0
                    
#r "nuget: Intropy.Contracts, 0.1.0"
                    
#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 Intropy.Contracts@0.1.0
                    
#: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=Intropy.Contracts&version=0.1.0
                    
Install as a Cake Addin
#tool nuget:?package=Intropy.Contracts&version=0.1.0
                    
Install as a Cake Tool

Intropy.Contracts

Contracts and interfaces for Intropy platform services. Use this package to depend on service contracts without taking a dependency on their implementations.

Services

Namespace Description
Intropy.Contracts.BusinessIncidentService Trigger, resolve, and query business incidents
Intropy.Contracts.IdempotencyService Check and commit message idempotency status

Getting Started

dotnet add package Intropy.Contracts

Business Incident Service

using Intropy.Contracts.BusinessIncidentService;

public class MyHandler(IBusinessIncidentServiceClient incidents)
{
    public async Task HandleFailure(Uri source, string subject, string id)
    {
        var data = new BusinessIncidentData { Description = "Payment processing failed" };
        await incidents.Trigger(source, subject, id, data, batchId: null);
    }
}

Idempotency Service

using Intropy.Contracts.IdempotencyService;

public class MyProcessor(IIdempotencyServiceClient idempotency)
{
    public async Task Process(string component, string messageId, string hash, DateTime timestamp)
    {
        var info = await idempotency.GetInfoAsync(component, messageId);

        var messageInfo = info ?? new MessageInfo(component, messageId, hash, timestamp);
        var status = await idempotency.GetStatusAsync(messageInfo);

        if (status.Action == Action.Ignore)
            return;

        // Process the message...

        await idempotency.CommitAsync(messageInfo);
    }
}

Requirements

  • .NET 10.0+

Contributing

To build locally:

dotnet build

License

This project is licensed under the MIT License.

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Intropy.Contracts:

Package Downloads
Intropy.Framework.Core

Type-safe, observable pipeline framework for building system integrations in .NET. Core pipeline engine, step abstractions, and result types.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.0 108 4/23/2026