Table of Contents

Class Dependencies

Namespace
SEBT.Portal.Infrastructure
Assembly
SEBT.Portal.Infrastructure.dll
public static class Dependencies
Inheritance
object
Dependencies

Methods

AddCaching(IServiceCollection, IConfiguration?, IHostEnvironment)

Registers caching services. When Redis is configured (via structured settings or legacy connection string), uses Redis as the distributed cache (L2) backing HybridCache. Otherwise, falls back to in-memory caching only — except in non-Development environments with OIDC configured, where Redis is required for cross-container session lookup and startup fails fast. Call this before AddPlugins — plugins may depend on HybridCache.

public static IServiceCollection AddCaching(this IServiceCollection services, IConfiguration? configuration, IHostEnvironment environment)

Parameters

services IServiceCollection
configuration IConfiguration
environment IHostEnvironment

Returns

IServiceCollection

AddPortalInfrastructure(IServiceCollection, IConfiguration, IHostEnvironment)

public static IServiceCollection AddPortalInfrastructure(this IServiceCollection services, IConfiguration configuration, IHostEnvironment environment)

Parameters

services IServiceCollection
configuration IConfiguration
environment IHostEnvironment

Returns

IServiceCollection