You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(audience-sdk): name queue file glob and atomic-write tmp suffix
Replaces the hand-rolled "*.json" globs and ".tmp" atomic-write suffixes spread across DiskStore,
ConsentStore, Identity, and the test suite with named constants on AudiencePaths so a rename of
either pattern touches one file and runtime / tests stay in sync.
- AudiencePaths.cs: adds QueueFileExtension (.json), QueueGlob ("*.json"), TempFileSuffix (.tmp).
- DiskStore.cs: queueDir uses AudiencePaths.QueueDir; the "*.json" globs and ".tmp" suffix go
through the new constants; new file naming uses QueueFileExtension.
- ConsentStore.cs, Identity.cs: atomic-write tmpPath uses AudiencePaths.TempFileSuffix.
- Test suite (DiskStoreTests, SessionTests, ImmutableAudienceTests, ThreadSafetyStressTests):
Directory.GetFiles globs read from AudiencePaths.QueueGlob.
- SampleAppLiveFireTests.cs: SDK persistence dir comes from AudiencePaths.AudienceDir, so the
sample-app side no longer needs its own SdkPersistedDirName mirror.
0 commit comments