Class ColoradoCbmsServiceBase
- Namespace
- SEBT.Portal.StatePlugins.CO
- Assembly
- SEBT.Portal.StatePlugins.CO.dll
public abstract class ColoradoCbmsServiceBase
- Inheritance
-
objectColoradoCbmsServiceBase
- Derived
Constructors
ColoradoCbmsServiceBase(HybridCache?, ILogger)
Minimal constructor for services that only need GetOrCreateClient(CbmsConnectionOptions) and do not use the household cache. SEBT.Portal.StatePlugins.CO.ColoradoCbmsServiceBase.HouseholdCache will be null when constructed this way; call sites must not access it.
protected ColoradoCbmsServiceBase(HybridCache? cache, ILogger logger)
Parameters
cacheHybridCacheloggerILogger
ColoradoCbmsServiceBase(IServiceProvider, IConfiguration, HybridCache?, ILogger)
Full constructor for services that use the household cache (e.g., read paths).
protected ColoradoCbmsServiceBase(IServiceProvider hostProvider, IConfiguration configuration, HybridCache? cache, ILogger logger)
Parameters
hostProviderIServiceProviderconfigurationIConfigurationcacheHybridCacheloggerILogger
Methods
FormatPatchBodyForLog(UpdateStudentDetailsRequest)
Formats an UpdateStudentDetailsRequest as a log-safe summary string for
pre-PATCH diagnostic logging. String fields are reduced to character counts (e.g. 4c)
rather than their values, so guardian name, email, and address data never appear in log output.
Enum-like fields (reqNewCard, ntfnOptInSw, ntfnSrc, optOut) are
logged verbatim since they carry no PII.
protected static string FormatPatchBodyForLog(UpdateStudentDetailsRequest b)
Parameters
Returns
- string
GetOrCreateClient(CbmsConnectionOptions)
protected CbmsSebtApiClient GetOrCreateClient(CbmsConnectionOptions options)
Parameters
optionsCbmsConnectionOptions