7c346a3ac5
* update SDK to fix local * fix using new types from sdk
28 lines
777 B
C#
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;
|
|
}
|
|
}
|