Files
speckle-sharp-connectors/Sdk/Speckle.Connectors.Common/Caching/NullSendConversionCache.cs
T
Adam Hathcock 7c346a3ac5 update SDK to fix local sln (#404)
* update SDK to fix local

* fix using new types from sdk
2024-11-22 12:43:37 +00:00

28 lines
777 B
C#

using System.Diagnostics.CodeAnalysis;
using Speckle.Sdk.Models;
using Speckle.Sdk.Serialisation;
namespace Speckle.Connectors.Common.Caching;
/// <summary>
/// A null send conversion cache for future use in connectors that cannot support <see cref="ISendConversionCache"/>. It does nothing!
/// </summary>
public class NullSendConversionCache : ISendConversionCache
{
public void StoreSendResult(string projectId, IReadOnlyDictionary<Id, ObjectReference> convertedReferences) { }
public void EvictObjects(IEnumerable<string> objectIds) { }
public void ClearCache() { }
public bool TryGetValue(
string projectId,
string applicationId,
[NotNullWhen(true)] out ObjectReference? objectReference
)
{
objectReference = null;
return false;
}
}