T91.Server.API 1.0.62

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

T91.Server.API

Base controller, global error middleware, and response filters for T91 .NET 10 microservices.

Full documentation: GitHub README

Installation

dotnet add package T91.Server.API

Key Components

T91Controller

Base controller all service controllers should extend. Applies [DateTimeConversion] automatically — all DateTime response properties are converted from UTC to the caller's local timezone via the X-Timezone request header.

[Route("/[controller]")]
public class CurrencyController : T91Controller { ... }

Opt out with [SkipDateTimeConversion] on a controller or action. Exclude individual properties with [UtcOnly].

ErrorHandlingMiddleware

Global exception handler — maps exceptions to HTTP status codes:

Exception Status
LogicException ex.Code (default 400)
NotFoundException 404
Everything else 500
app.UseMiddleware<ErrorHandlingMiddleware>();

Override HttpStatusCodeByException to add custom mappings.

DateTimeConversionFilter

Applied automatically via T91Controller. Reads ICurrentScope.Timezone (IANA ID from X-Timezone header) and converts all non-[UtcOnly] DateTime properties in the response. No conversion when header is absent or "UTC".

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.

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.0.62 108 5/9/2026
1.0.58 89 5/3/2026
1.0.52 98 5/2/2026
1.0.51 87 5/1/2026
1.0.50 102 4/22/2026
1.0.0 195 10/6/2024