Interface ILocalIdTracker
- Namespace
- JsonApiDotNetCore.AtomicOperations
- Assembly
- JsonApiDotNetCore.dll
Used to track declarations, assignments and references to local IDs an in atomic:operations request.
public interface ILocalIdTracker
Methods
Assign(string, ResourceType, string)
Assigns a server-generated ID value to a previously declared local ID.
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.
void Declare(string localId, ResourceType resourceType)
Parameters
localId
stringresourceType
ResourceType
GetValue(string, ResourceType)
Gets the server-assigned ID for the specified local ID.
string GetValue(string localId, ResourceType resourceType)
Parameters
localId
stringresourceType
ResourceType
Returns
Reset()
Removes all declared and assigned values.
void Reset()