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

Cirreum.Services.Serverless

NuGet Version NuGet Downloads GitHub Release License .NET

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

  1. Be conservative with new abstractions
    The API surface must remain stable and meaningful.

  2. Limit dependency expansion
    Only add foundational, version-stable dependencies.

  3. Favor additive, non-breaking changes
    Breaking changes ripple through the entire ecosystem.

  4. Include thorough unit tests
    All primitives and patterns should be independently testable.

  5. Document architectural decisions
    Context and reasoning should be clear for future maintainers.

  6. 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 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 (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
Loading failed