INodeStore<TIdentifier> Interface
HAKOM.TSM.Net.Api.Attributes.Nodes.Persistence
Section titled “HAKOM.TSM.Net.Api.Attributes.Nodes.Persistence”Used to find, load, save or delete INodes. Should only be instantiated by an INodeStoreFactory.
public interface INodeStore<TIdentifier> : HAKOM.TSM.Net.Api.Attributes.Nodes.Persistence.INodeStore, HAKOM.Persistence.Core.Net.Api.Storage.IStore<HAKOM.Persistence.Core.Net.Api.Storage.IStorageProvider> where TIdentifier : System.IEquatable<TIdentifier>Type parameters
Section titled “Type parameters”TIdentifier
The type of unique identifier used to refer to INode objects.
Implements INodeStore, HAKOM.Persistence.Core.Net.Api.Storage.IStore<IStorageProvider>
Properties
Section titled “Properties”INodeStore<TIdentifier>.References Property
Section titled “INodeStore<TIdentifier>.References Property”Gets a factory used to create INodeReference<TIdentifier> objects.
HAKOM.TSM.Net.Api.Attributes.Nodes.Persistence.References.INodeReferenceFactory<TIdentifier> References { get; }Property Value
Section titled “Property Value”HAKOM.TSM.Net.Api.Attributes.Nodes.Persistence.References.INodeReferenceFactory<TIdentifier>
Methods
Section titled “Methods”INodeStore<TIdentifier>.Load(TIdentifier, CancellationToken) Method
Section titled “INodeStore<TIdentifier>.Load(TIdentifier, CancellationToken) Method”Loads the INodeReference with the given identifier.
System.Threading.Tasks.Task<HAKOM.TSM.Net.Api.Attributes.Nodes.Persistence.References.INodeReference> Load(TIdentifier identifier, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));Parameters
Section titled “Parameters”identifier TIdentifier
The unique identifier of the node in the repository.
cancellationToken System.Threading.CancellationToken
A token that may be used to cancel the operation.
Returns
Section titled “Returns”System.Threading.Tasks.Task<INodeReference>
A System.Threading.Tasks.Task<> containing an INodeReference to
the desired INode.
INodeStore<TIdentifier>.TryLoad(TIdentifier, CancellationToken) Method
Section titled “INodeStore<TIdentifier>.TryLoad(TIdentifier, CancellationToken) Method”Attempts to load the INodeReference with the given identifier.
System.Threading.Tasks.Task<HAKOM.ErrorHandling.Core.Net.Api.Result<HAKOM.TSM.Net.Api.Attributes.Nodes.Persistence.References.INodeReference>> TryLoad(TIdentifier identifier, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));Parameters
Section titled “Parameters”identifier TIdentifier
The unique identifier of the node in the repository.
cancellationToken System.Threading.CancellationToken
A token that may be used to cancel the operation.
Returns
Section titled “Returns”System.Threading.Tasks.Task<HAKOM.ErrorHandling.Core.Net.Api.Result<INodeReference>>
A System.Threading.Tasks.Task<> of Result<TValue> containing a reference to the desired Node.
INodeStore<TIdentifier>.TryUpdate(TIdentifier, INode, CancellationToken) Method
Section titled “INodeStore<TIdentifier>.TryUpdate(TIdentifier, INode, CancellationToken) Method”Attempts to modify INode in the repository identified by identifier using the data from the provided node.
System.Threading.Tasks.Task<HAKOM.ErrorHandling.Core.Net.Api.Result<HAKOM.TSM.Net.Api.Attributes.Nodes.Persistence.References.INodeReference>> TryUpdate(TIdentifier identifier, HAKOM.TSM.Net.Api.Attributes.Nodes.INode node, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));Parameters
Section titled “Parameters”identifier TIdentifier
The unique identifier of the node in the repository.
node INode
The INode which will be persisted.
cancellationToken System.Threading.CancellationToken
A token that may be used to cancel the operation.
Returns
Section titled “Returns”System.Threading.Tasks.Task<HAKOM.ErrorHandling.Core.Net.Api.Result<INodeReference>>
A System.Threading.Tasks.Task<> of Result<TValue> containing a reference to the persisted node.
INodeStore<TIdentifier>.Update(TIdentifier, INode, CancellationToken) Method
Section titled “INodeStore<TIdentifier>.Update(TIdentifier, INode, CancellationToken) Method”Modifies the given INode in the repository identified by identifier using the data from the provided node.
System.Threading.Tasks.Task<HAKOM.TSM.Net.Api.Attributes.Nodes.Persistence.References.INodeReference> Update(TIdentifier identifier, HAKOM.TSM.Net.Api.Attributes.Nodes.INode node, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));Parameters
Section titled “Parameters”identifier TIdentifier
The unique identifier of the node in the repository.
node INode
The INode which will be persisted.
cancellationToken System.Threading.CancellationToken
A token that may be used to cancel the operation.
Returns
Section titled “Returns”System.Threading.Tasks.Task<INodeReference>
A System.Threading.Tasks.Task<> containing a reference to the persisted node.