---
title: BolServicesContainer
summary: API reference for BolServicesContainer.
status: draft
owner: SAIF IT Core Services
last_reviewed: 2026-10-12
library: BolMiddleware
reference_type: package
---

# BolServicesContainer

Default implementation of `IBolServicesContainer`. It only holds references to the injected services and adds no logic, so page models can receive them together.

## Purpose
- Store the injected services and expose them as read-only properties.

## Context
- Namespace: `BolMiddleware.Services`
- Assembly/package: `BolMiddleware`

## Public members
| Member | Signature | Purpose |
| --- | --- | --- |
| Constructor | `BolServicesContainer(IEnvironmentClient environmentClient, ISecurityService securityService, ISaifLogService logService, IConfiguration configuration, and the remaining services)` | Receives every dependency from the container, including the context, menu, cookie, and cookie helper services. |
| `SecurityService` | `ISecurityService SecurityService { get; }` | Identity, role, and policy access checks. |
| `LogService` | `ISaifLogService LogService { get; }` | Platform logger. |
| `WebContextService` | `IWebContextService WebContextService { get; }` | Reads and saves the web context. |
| `MenuService` | `IMenuService MenuService { get; }` | Loads the user's menu. |
| `MyConfiguration` | `IConfiguration MyConfiguration { get; }` | Application configuration. |
| `EnvironmentClient` | `IEnvironmentClient EnvironmentClient { get; }` | Environment settings client. |
| `CookieService` | `ICookieService CookieService { get; }` | Cookie access. |
| `ContextCookieHelper` | `IContextCookieHelper ContextCookieHelper { get; }` | Context cookie user settings. |

## Behavioral notes
- Registered as scoped in `RegisterBolServices`.

## Constraints and usage notes
- A missing dependency fails at resolution time.

## Sources
- src/BolMiddleware/Services/BolServicesContainer.cs
