IBeam.Services 2.5.0

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

IBeam.Services

Core service-layer abstractions and base implementations for IBeam.

Narrative Introduction

This package sits between application workflows and repository providers. It standardizes service behavior with reusable base classes, mapping abstractions, auditing hooks, and policy-based operation controls so teams can implement domain services consistently.

Service Ownership

Services are the home for application behavior. A controller should be a transport adapter: accept HTTP input, call a service, and shape the HTTP response. Business rules, policy checks, validation decisions, auditing/logging, and expected error classification belong in the service layer.

Expected failures should be raised by services with user-safe messages so controllers can return friendly responses. Examples include validation failures, disabled operations, missing records, authorization/policy failures, and domain conflicts.

Unexpected failures and system-level errors should bubble out to the API exception pipeline. They should not expose internal details to the caller. When an IApiErrorSink is configured, the API layer persists those operational details to the system error store; with the Azure Table provider, that is the SystemErrors table.

Features and Components

  • abstractions in IBeam.Services.Abstractions:
    • IBaseService<TEntity,TModel>
    • IBaseServiceAsync<TEntity,TModel>
    • IModelMapper<TEntity,TModel>
    • audit interfaces (IAuditService*, IEntityAuditService*)
  • core implementations in IBeam.Services.Core:
    • BaseService<TEntity,TModel>
    • BaseServiceAsync<TEntity,TModel>
  • service operation policy system:
    • ServiceOperationPolicyAttribute
    • ServicePolicyOptions
    • IServiceOperationPolicyResolver
    • AddIBeamServicePolicies(...)
  • custom service operation execution:
    • IBeamOperationAttribute
    • IBeamAuditActionAttribute
    • IBeamRequiresPermissionAttribute
    • IServiceOperationExecutor
    • ServiceOperationExecutionOptions

Custom Service Operations

Base CRUD methods already apply service operation authorization and audit logging. Custom service methods can use IServiceOperationExecutor to get the same behavior.

[IBeamOperation("patients")]
public sealed class PatientService
{
    private readonly IServiceOperationExecutor _operations;

    public PatientService(IServiceOperationExecutor operations)
    {
        _operations = operations;
    }

    [IBeamOperation("patients.discharge")]
    public Task DischargeAsync(Guid patientId, CancellationToken ct = default)
    {
        return _operations.ExecuteAsync(
            this,
            async token =>
            {
                // Custom business rules and repository/service calls live here.
                await Task.CompletedTask;
            },
            new ServiceOperationExecutionOptions
            {
                EntityId = patientId
            },
            ct);
    }
}

The executor resolves the operation name from the method attribute, checks service-operation authorization when configured, writes audit transactions when auditing is enabled, captures request/actor/tenant context, and records success/failure metadata for debugging.

Use ServiceOperationExecutionOptions.OriginalData and TransformedData when the custom method changes data and you can provide before/after entity snapshots. Prefer database entity shapes for those snapshots, not decorated outbound DTOs.

Dependencies

  • Internal packages:
    • IBeam.Repositories
    • IBeam.Utilities
  • External packages:
    • AutoMapper
    • Microsoft.Extensions.Options

Additional Docs

  • README.abstractions.md: contract quick reference
  • README.core.md: policy and configuration details
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 (6)

Showing the top 5 NuGet packages that depend on IBeam.Services:

Package Downloads
IBeam.Identity.Services

IBeam modular framework components for .NET APIs and services.

IBeam.Services.AutoMapper

IBeam modular framework components for .NET APIs and services.

IBeam.Services.Logging

IBeam modular framework components for .NET APIs and services.

IBeam.Ai.Services

Agent tool registry, authorization, and MCP service orchestration for IBeam-backed applications.

IBeam.Licensing.Services

Tenant licensing services, plan catalog, entitlement authorization, and in-memory store for IBeam-backed applications.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.5.0 32 7/17/2026
2.4.2 59 7/16/2026
2.4.1 67 7/14/2026
2.4.0 128 6/24/2026
2.3.0 123 6/24/2026
2.2.0 125 6/23/2026
2.1.0 138 6/23/2026
2.0.68 121 6/23/2026
2.0.66 122 6/22/2026
2.0.65 130 6/22/2026
2.0.64 127 6/17/2026
2.0.63 133 6/16/2026
2.0.62 130 6/16/2026
2.0.57 194 6/8/2026
2.0.56 128 6/7/2026
2.0.54 239 5/27/2026
2.0.52 135 5/27/2026
2.0.35 129 5/15/2026
2.0.32 138 3/25/2026
2.0.30 125 3/25/2026
Loading failed