synology_apm_repo.sdk.units.saas.context module¶
SharedSaasContext: what every candidate provider for one SaaS
version shares — its saas_obj, object-name index and the index’s
reference-counted ObjectDB.
Bases:
objectOne version’s object-name-index ObjectDB, reference-counted: loaded on the first
acquire(), closed once every holder has calledrelease().
Bases:
objectOne SaaS version’s stream object and object-name index, resolved once by
resolve_shared_saas_context:units/dispatch.pypasses it to every candidate provider (M365’sUSER_EXCHANGEtries four) and to theRawObjectProviderfallback asshared, and a provider built on its own resolves one the same way.index_object_dbloads the index’s ObjectDB once between them; each provider takes a hold and releases it when it closes. The other fields need no closing.
Resolve the
SharedSaasContextforversion.saas_streamsis borrowed: theSaasStreamit opens stays cached there.