using System; namespace Unity.Services.Core.Telemetry.Internal { class DisabledCachePersister : ICachePersister where TPayload : ITelemetryPayload { const string k_ErrorMessage = "Cache persistence isn't supported on the current platform."; public bool CanPersist => false; public void Persist(CachedPayload cache) => throw new NotSupportedException(k_ErrorMessage); public bool TryFetch(out CachedPayload persistedCache) => throw new NotSupportedException(k_ErrorMessage); public void Delete() => throw new NotSupportedException(k_ErrorMessage); } }