IAttributeReferenceFactory<TIdentifier> Interface
HAKOM.TSM.Net.Api.Attributes.Persistence.References
Section titled “HAKOM.TSM.Net.Api.Attributes.Persistence.References”Creates IAttributeReference<TIdentifier> objects.
public interface IAttributeReferenceFactory<TIdentifier> where TIdentifier : System.IEquatable<TIdentifier>Type parameters
Section titled “Type parameters”TIdentifier
The type of unique identifier used to refer to IAttribute objects.
Methods
Section titled “Methods”IAttributeReferenceFactory<TIdentifier>.Configure(IAttributeStore<TIdentifier>) Method
Section titled “IAttributeReferenceFactory<TIdentifier>.Configure(IAttributeStore<TIdentifier>) Method”Configures the IAttributeReferenceFactory<TIdentifier> for usage.
void Configure(HAKOM.TSM.Net.Api.Attributes.Persistence.IAttributeStore<TIdentifier> attributeStore);Parameters
Section titled “Parameters”attributeStore HAKOM.TSM.Net.Api.Attributes.Persistence.IAttributeStore<TIdentifier>
The IAttributeStore<TIdentifier> for loading the references.
IAttributeReferenceFactory<TIdentifier>.Create(TIdentifier) Method
Section titled “IAttributeReferenceFactory<TIdentifier>.Create(TIdentifier) Method”Creates a IAttributeReference<TIdentifier> with the specified identifier.
HAKOM.TSM.Net.Api.Attributes.Persistence.References.IAttributeReference<TIdentifier> Create(TIdentifier identifier);Parameters
Section titled “Parameters”identifier TIdentifier
The identifier for the IAttributeReference<TIdentifier>.
Returns
Section titled “Returns”HAKOM.TSM.Net.Api.Attributes.Persistence.References.IAttributeReference<TIdentifier>
The created IAttributeReference<TIdentifier>.
IAttributeReferenceFactory<TIdentifier>.Create(TIdentifier, IAttribute) Method
Section titled “IAttributeReferenceFactory<TIdentifier>.Create(TIdentifier, IAttribute) Method”Creates a IAttributeReference<TIdentifier> with the specified identifier.
HAKOM.TSM.Net.Api.Attributes.Persistence.References.IAttributeReference<TIdentifier> Create(TIdentifier identifier, HAKOM.TSM.Net.Api.Attributes.IAttribute attribute);Parameters
Section titled “Parameters”identifier TIdentifier
The identifier for the IAttributeReference<TIdentifier>.
attribute IAttribute
The IAttribute associated with the reference.
Returns
Section titled “Returns”HAKOM.TSM.Net.Api.Attributes.Persistence.References.IAttributeReference<TIdentifier>
The created IAttributeReference<TIdentifier>.
IAttributeReferenceFactory<TIdentifier>.TryCreate(TIdentifier) Method
Section titled “IAttributeReferenceFactory<TIdentifier>.TryCreate(TIdentifier) Method”Tries to create a IAttributeReference<TIdentifier> with the specified identifier.
HAKOM.ErrorHandling.Core.Net.Api.Result<HAKOM.TSM.Net.Api.Attributes.Persistence.References.IAttributeReference<TIdentifier>> TryCreate(TIdentifier identifier);Parameters
Section titled “Parameters”identifier TIdentifier
The identifier for the IAttributeReference<TIdentifier>.
Returns
Section titled “Returns”HAKOM.ErrorHandling.Core.Net.Api.Result<HAKOM.TSM.Net.Api.Attributes.Persistence.References.IAttributeReference<TIdentifier>>
A Result<TValue> of the created IAttributeReference<TIdentifier>.
Remarks
Section titled “Remarks”The Result will provide additional information about success or failure.
IAttributeReferenceFactory<TIdentifier>.TryCreate(TIdentifier, IAttribute) Method
Section titled “IAttributeReferenceFactory<TIdentifier>.TryCreate(TIdentifier, IAttribute) Method”Tries to create a IAttributeReference<TIdentifier> with the specified identifier.
HAKOM.ErrorHandling.Core.Net.Api.Result<HAKOM.TSM.Net.Api.Attributes.Persistence.References.IAttributeReference<TIdentifier>> TryCreate(TIdentifier identifier, HAKOM.TSM.Net.Api.Attributes.IAttribute attribute);Parameters
Section titled “Parameters”identifier TIdentifier
The identifier for the IAttributeReference<TIdentifier>.
attribute IAttribute
The IAttribute associated with the reference.
Returns
Section titled “Returns”HAKOM.ErrorHandling.Core.Net.Api.Result<HAKOM.TSM.Net.Api.Attributes.Persistence.References.IAttributeReference<TIdentifier>>
A Result<TValue> of the created IAttributeReference<TIdentifier>.
Remarks
Section titled “Remarks”The Result will provide additional information about success or failure.