Table of Contents

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 string
resourceType ResourceType
stringId string

Declare(string, ResourceType)

Declares a local ID without assigning a server-generated value.

void Declare(string localId, ResourceType resourceType)

Parameters

localId string
resourceType ResourceType

GetValue(string, ResourceType)

Gets the server-assigned ID for the specified local ID.

string GetValue(string localId, ResourceType resourceType)

Parameters

localId string
resourceType ResourceType

Returns

string

Reset()

Removes all declared and assigned values.

void Reset()