NOF.Contract
9.0.0
dotnet add package NOF.Contract --version 9.0.0
NuGet\Install-Package NOF.Contract -Version 9.0.0
<PackageReference Include="NOF.Contract" Version="9.0.0" />
<PackageVersion Include="NOF.Contract" Version="9.0.0" />
<PackageReference Include="NOF.Contract" />
paket add NOF.Contract --version 9.0.0
#r "nuget: NOF.Contract, 9.0.0"
#:package NOF.Contract@9.0.0
#addin nuget:?package=NOF.Contract&version=9.0.0
#tool nuget:?package=NOF.Contract&version=9.0.0
NOF.Contract
Contract layer package for the NOF Framework.
Overview
Defines the messaging contracts and shared models that form the public API surface of your application. This package contains request/command/notification interfaces, the Result<T> type, and HTTP endpoint attributes with source generation support.
Key Abstractions
Messages
// Request with response
public record GetOrderRequest(Guid Id);
// Request without response
public record ArchiveOrderRequest(Guid Id);
// Fire-and-forget command
public record SendEmailCommand(string To, string Subject, string Body) : ICommand;
// Publish/subscribe notification
public record OrderCreatedNotification(Guid OrderId) : INotification;
Result Type
// Success
return Result.Success(orderDto);
// Failure
return Result.Fail("404", "Order not found");
[HttpEndpoint]
Marks a request type for automatic HTTP endpoint generation via source generator.
[HttpEndpoint(HttpVerb.Get, "/api/orders/{id}")]
public record GetOrderRequest(Guid Id);
[HttpEndpoint(HttpVerb.Post, "/api/orders")]
public record CreateOrderRequest(string ProductName, int Quantity);
Other Annotations
[RequirePermission]- declares required permissions for an endpoint[EndpointName]/[Description]- OpenAPI metadata[Summary]- adds summary documentation to generated endpoints
Installation
dotnet add package NOF.Contract
License
Apache-2.0
| 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 (7)
Showing the top 5 NuGet packages that depend on NOF.Contract:
| Package | Downloads |
|---|---|
|
NOF.Application
Application layer for the NOF Framework — request/command/notification handlers, state machines, caching, and unit of work. |
|
|
NOF.Test
Testing support for applications built with NOF, including lightweight test hosts, scoped execution helpers, and application-oriented integration testing utilities. |
|
|
NOF.Hosting.Abstraction
Hosting abstractions for the NOF Framework — host builder interfaces and step contracts shared by different hosting environments. |
|
|
NOF.Application.Extension.Redis
Redis application extension for the NOF Framework — advanced Redis cache abstractions built on top of NOF caching. |
|
|
NOF.UI
Reusable UI primitives for the NOF Framework - authorization components, browser storage abstractions, and client-side cache services. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 9.0.0 | 137 | 4/10/2026 |
| 9.0.0-nightly.1199007.3d5befd | 45 | 4/12/2026 |
| 9.0.0-nightly.1198242.c8a3545 | 42 | 4/12/2026 |
| 9.0.0-nightly.1196197.909eb55 | 53 | 4/10/2026 |
| 8.1.0-nightly.1195804.cce016b | 52 | 4/10/2026 |
| 8.1.0-nightly.1193099.99dde3c | 60 | 4/8/2026 |
| 8.1.0-nightly.1192845.b7d8342 | 59 | 4/8/2026 |
| 8.1.0-nightly.1191847.83ab912 | 61 | 4/7/2026 |
| 8.1.0-nightly.1191516.b6ed90f | 59 | 4/7/2026 |
| 8.1.0-nightly.1190244.7e1669e | 57 | 4/6/2026 |
| 8.0.0 | 197 | 4/3/2026 |
| 8.0.0-nightly.1186048.1e888b7 | 61 | 4/3/2026 |
| 8.0.0-nightly.1184662.3649625 | 58 | 4/2/2026 |
| 8.0.0-nightly.1184610.6235e8d | 50 | 4/2/2026 |
| 8.0.0-nightly.1184586.7831d99 | 59 | 4/2/2026 |
| 8.0.0-nightly.1183027.81361be | 54 | 4/1/2026 |
| 8.0.0-nightly.1182812.d2b8f81 | 59 | 4/1/2026 |
| 8.0.0-nightly.1171454.39c8e77 | 62 | 3/24/2026 |
| 8.0.0-nightly.1171297.eb9cf82 | 57 | 3/24/2026 |
| 8.0.0-nightly.1170307.152510d | 60 | 3/23/2026 |