IBeam.Services
2.5.0
dotnet add package IBeam.Services --version 2.5.0
NuGet\Install-Package IBeam.Services -Version 2.5.0
<PackageReference Include="IBeam.Services" Version="2.5.0" />
<PackageVersion Include="IBeam.Services" Version="2.5.0" />
<PackageReference Include="IBeam.Services" />
paket add IBeam.Services --version 2.5.0
#r "nuget: IBeam.Services, 2.5.0"
#:package IBeam.Services@2.5.0
#addin nuget:?package=IBeam.Services&version=2.5.0
#tool nuget:?package=IBeam.Services&version=2.5.0
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:
ServiceOperationPolicyAttributeServicePolicyOptionsIServiceOperationPolicyResolverAddIBeamServicePolicies(...)
- custom service operation execution:
IBeamOperationAttributeIBeamAuditActionAttributeIBeamRequiresPermissionAttributeIServiceOperationExecutorServiceOperationExecutionOptions
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.RepositoriesIBeam.Utilities
- External packages:
AutoMapperMicrosoft.Extensions.Options
Additional Docs
README.abstractions.md: contract quick referenceREADME.core.md: policy and configuration details
| 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
- AutoMapper (>= 16.1.1)
- IBeam.AccessControl (>= 2.5.0)
- IBeam.Repositories (>= 2.5.0)
- IBeam.Utilities (>= 2.5.0)
- Microsoft.Extensions.Options (>= 10.0.3)
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 |