INodeFactory Interface
Used to create INode objects.
public interface INodeFactoryMethods
Section titled “Methods”INodeFactory.Create(string, INodeReference, IAttributeReference) Method
Section titled “INodeFactory.Create(string, INodeReference, IAttributeReference) Method”Create a node with the given name, parent, root.
HAKOM.TSM.Net.Api.Attributes.Nodes.INode Create(string name, HAKOM.TSM.Net.Api.Attributes.Nodes.Persistence.References.INodeReference? parent, HAKOM.TSM.Net.Api.Attributes.Persistence.References.IAttributeReference root);Parameters
Section titled “Parameters”name System.String
The System.String name of the new Node.
parent INodeReference
The reference referring the INodeReference of the new Node.
root IAttributeReference
The reference referring the IAttributeReference of the new Node.
Returns
Section titled “Returns”INodeFactory.Create(string, INodeReference, IAttributeReference, IReadOnlyDictionary<string,INodeReference>) Method
Section titled “INodeFactory.Create(string, INodeReference, IAttributeReference, IReadOnlyDictionary<string,INodeReference>) Method”Create a node with the given name, parent, root, children.
HAKOM.TSM.Net.Api.Attributes.Nodes.INode Create(string name, HAKOM.TSM.Net.Api.Attributes.Nodes.Persistence.References.INodeReference? parent, HAKOM.TSM.Net.Api.Attributes.Persistence.References.IAttributeReference root, System.Collections.Generic.IReadOnlyDictionary<string,HAKOM.TSM.Net.Api.Attributes.Nodes.Persistence.References.INodeReference> children);Parameters
Section titled “Parameters”name System.String
The System.String name of the new Node.
parent INodeReference
The reference referring the INodeReference of the new Node.
root IAttributeReference
The reference referring the IAttributeReference of the new Node.
children System.Collections.Generic.IReadOnlyDictionary<System.String,INodeReference>
Dictionary of the references referring the INodeReference
children of the new Node.
- <b>Key</b>: Child node name (System.String)
- <b>Value</b>: Reference to the child node (INodeReference)
Returns
Section titled “Returns”INodeFactory.TryCreate(string, INodeReference, IAttributeReference) Method
Section titled “INodeFactory.TryCreate(string, INodeReference, IAttributeReference) Method”Attempts to create a node with the given name, parent, root.
HAKOM.ErrorHandling.Core.Net.Api.Result<HAKOM.TSM.Net.Api.Attributes.Nodes.INode> TryCreate(string name, HAKOM.TSM.Net.Api.Attributes.Nodes.Persistence.References.INodeReference? parent, HAKOM.TSM.Net.Api.Attributes.Persistence.References.IAttributeReference root);Parameters
Section titled “Parameters”name System.String
The System.String name of the new Node.
parent INodeReference
The reference referring the INodeReference of the new Node.
root IAttributeReference
The reference referring the IAttributeReference of the new Node.
Returns
Section titled “Returns”HAKOM.ErrorHandling.Core.Net.Api.Result<INode>
A System.Threading.Tasks.Task<> of Result<TValue> containing the created INode.
Remarks
Section titled “Remarks”The Result will provide additional information about success or failure.
INodeFactory.TryCreate(string, INodeReference, IAttributeReference, IReadOnlyDictionary<string,INodeReference>) Method
Section titled “INodeFactory.TryCreate(string, INodeReference, IAttributeReference, IReadOnlyDictionary<string,INodeReference>) Method”Attempts to create a node with the given name, parent, root, children.
HAKOM.ErrorHandling.Core.Net.Api.Result<HAKOM.TSM.Net.Api.Attributes.Nodes.INode> TryCreate(string name, HAKOM.TSM.Net.Api.Attributes.Nodes.Persistence.References.INodeReference? parent, HAKOM.TSM.Net.Api.Attributes.Persistence.References.IAttributeReference root, System.Collections.Generic.IReadOnlyDictionary<string,HAKOM.TSM.Net.Api.Attributes.Nodes.Persistence.References.INodeReference> children);Parameters
Section titled “Parameters”name System.String
The System.String name of the new Node.
parent INodeReference
The reference referring the INodeReference of the new Node.
root IAttributeReference
The reference referring the IAttributeReference of the new Node.
children System.Collections.Generic.IReadOnlyDictionary<System.String,INodeReference>
Dictionary of the references referring the INodeReference
children of the new Node.
- <b>Key</b>: Child node name (System.String)
- <b>Value</b>: Reference to the child node (INodeReference)
Returns
Section titled “Returns”HAKOM.ErrorHandling.Core.Net.Api.Result<INode>
A System.Threading.Tasks.Task<> of Result<TValue> containing the created INode.
Remarks
Section titled “Remarks”The Result will provide additional information about success or failure.