Cirreum.Services.Serverless
1.0.24
dotnet add package Cirreum.Services.Serverless --version 1.0.24
NuGet\Install-Package Cirreum.Services.Serverless -Version 1.0.24
<PackageReference Include="Cirreum.Services.Serverless" Version="1.0.24" />
<PackageVersion Include="Cirreum.Services.Serverless" Version="1.0.24" />
<PackageReference Include="Cirreum.Services.Serverless" />
paket add Cirreum.Services.Serverless --version 1.0.24
#r "nuget: Cirreum.Services.Serverless, 1.0.24"
#:package Cirreum.Services.Serverless@1.0.24
#addin nuget:?package=Cirreum.Services.Serverless&version=1.0.24
#tool nuget:?package=Cirreum.Services.Serverless&version=1.0.24
Cirreum.Services.Serverless
Infrastructure services for serverless applications built on Azure Functions
Overview
Cirreum.Services.Serverless provides essential infrastructure services for Azure Functions applications built on the Cirreum framework. This library offers security, file system operations, clock services, and user management specifically designed for serverless environments.
Features
- Function Context Management - Thread-safe access to Azure Function context across middleware and services
- User State Management - Scoped user authentication and session handling with request-level caching
- CSV File Operations - Streamlined CSV generation and reading with configurable formatting
- Cross-Platform Time Services - Time zone handling with Windows-to-IANA conversion support
- Serverless Security - Authentication and authorization patterns optimized for function execution
- Dependency Injection Integration - Seamless integration with Microsoft.Extensions.DependencyInjection
Getting Started
Installation
dotnet add package Cirreum.Services.Serverless
Basic Setup
var host = new HostBuilder()
.ConfigureFunctionsWebApplication(builder =>
{
builder.AddCoreServices(); // Registers all serverless infrastructure services
})
.Build();
Using Function Context
public class MyFunction
{
private readonly IFunctionContextAccessor _contextAccessor;
private readonly IUserStateAccessor _userAccessor;
public MyFunction(IFunctionContextAccessor contextAccessor, IUserStateAccessor userAccessor)
{
_contextAccessor = contextAccessor;
_userAccessor = userAccessor;
}
[Function("MyFunction")]
public async Task<HttpResponseData> Run([HttpTrigger] HttpRequestData req)
{
var user = await _userAccessor.GetUser();
var context = _contextAccessor.Context;
// Function logic here
}
}
CSV File Operations
public class DataExportFunction
{
private readonly ICsvFileBuilder _csvBuilder;
public DataExportFunction(ICsvFileBuilder csvBuilder)
{
_csvBuilder = csvBuilder;
}
[Function("ExportData")]
public async Task<HttpResponseData> ExportData([HttpTrigger] HttpRequestData req)
{
var records = GetDataRecords();
var csvBytes = _csvBuilder.BuildFile(records, delimiter: ",");
// Return CSV file response
}
}
Architecture
This library extends the Cirreum.Core framework with serverless-specific services:
- IServerlessDomainApplicationBuilder - Extends domain application builder with Azure Functions support
- Function Context Middleware - Captures and stores function execution context
- Scoped User Management - Per-request user state with authentication caching
- File System Abstractions - CSV processing with configurable formatting options
- Clock Services - Cross-platform time zone handling for distributed environments
Contribution Guidelines
Be conservative with new abstractions
The API surface must remain stable and meaningful.Limit dependency expansion
Only add foundational, version-stable dependencies.Favor additive, non-breaking changes
Breaking changes ripple through the entire ecosystem.Include thorough unit tests
All primitives and patterns should be independently testable.Document architectural decisions
Context and reasoning should be clear for future maintainers.Follow .NET conventions
Use established patterns from Microsoft.Extensions.* libraries.
Versioning
Cirreum.Services.Serverless follows Semantic Versioning:
- Major - Breaking API changes
- Minor - New features, backward compatible
- Patch - Bug fixes, backward compatible
Given its foundational role, major version bumps are rare and carefully considered.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Cirreum Foundation Framework
Layered simplicity for modern .NET
| 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
- Cirreum.Core (>= 1.0.40)
- Microsoft.Azure.Functions.Worker (>= 2.51.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Cirreum.Services.Serverless:
| Package | Downloads |
|---|---|
|
Cirreum.Runtime.Serverless
The Cirreum Runtime Serverless. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.24 | 101 | 2/5/2026 |
| 1.0.23 | 101 | 1/23/2026 |
| 1.0.22 | 94 | 1/22/2026 |
| 1.0.21 | 98 | 1/21/2026 |
| 1.0.20 | 104 | 1/12/2026 |
| 1.0.19 | 105 | 1/11/2026 |
| 1.0.18 | 109 | 1/5/2026 |
| 1.0.17 | 102 | 1/5/2026 |
| 1.0.16 | 107 | 1/2/2026 |
| 1.0.15 | 106 | 1/1/2026 |
| 1.0.14 | 111 | 12/30/2025 |
| 1.0.12 | 97 | 12/29/2025 |
| 1.0.11 | 104 | 12/29/2025 |
| 1.0.10 | 110 | 12/29/2025 |
| 1.0.9 | 103 | 12/29/2025 |
| 1.0.8 | 188 | 12/22/2025 |
| 1.0.7 | 130 | 12/20/2025 |
| 1.0.6 | 307 | 12/16/2025 |
| 1.0.5 | 181 | 12/5/2025 |
| 1.0.4 | 446 | 12/1/2025 |