Class LocalIdTracker
- Namespace
- JsonApiDotNetCore.AtomicOperations
- Assembly
- JsonApiDotNetCore.dll
Used to track declarations, assignments and references to local IDs an in atomic:operations request.
public sealed class LocalIdTracker : ILocalIdTracker
- Inheritance
-
LocalIdTracker
- Implements
- Inherited Members
Methods
Assign(string, ResourceType, string)
Assigns a server-generated ID value to a previously declared local ID.
public void Assign(string localId, ResourceType resourceType, string stringId)
Parameters
localId
stringresourceType
ResourceTypestringId
string
Declare(string, ResourceType)
Declares a local ID without assigning a server-generated value.
public void Declare(string localId, ResourceType resourceType)
Parameters
localId
stringresourceType
ResourceType
GetValue(string, ResourceType)
Gets the server-assigned ID for the specified local ID.
public string GetValue(string localId, ResourceType resourceType)
Parameters
localId
stringresourceType
ResourceType
Returns
Reset()
Removes all declared and assigned values.
public void Reset()