IUnitReferenceFactory Interface
HAKOM.TSM.Net.Api.Units.Persistence.References
Section titled “HAKOM.TSM.Net.Api.Units.Persistence.References”A factory for creating IUnitReference.
public interface IUnitReferenceFactoryMethods
Section titled “Methods”IUnitReferenceFactory.Configure(IUnitStore) Method
Section titled “IUnitReferenceFactory.Configure(IUnitStore) Method”Configures the IUnitReferenceFactory for usage.
void Configure(HAKOM.TSM.Net.Api.Units.Persistence.IUnitStore unitStore);Parameters
Section titled “Parameters”unitStore IUnitStore
The IUnitStore for loading the references.
IUnitReferenceFactory.Create(string) Method
Section titled “IUnitReferenceFactory.Create(string) Method”Creates a IUnitReference with the specified identifier.
HAKOM.TSM.Net.Api.Units.Persistence.References.IUnitReference Create(string identifier);Parameters
Section titled “Parameters”identifier System.String
The identifier for the unit reference.
Returns
Section titled “Returns”IUnitReference
The created IUnitReference.
IUnitReferenceFactory.Create(string, IUnit) Method
Section titled “IUnitReferenceFactory.Create(string, IUnit) Method”Creates a IUnitReference with the specified identifier.
HAKOM.TSM.Net.Api.Units.Persistence.References.IUnitReference Create(string identifier, HAKOM.TSM.Net.Api.Units.IUnit unit);Parameters
Section titled “Parameters”identifier System.String
The identifier for the IUnitReference.
unit IUnit
The IUnit to be associated with the reference.
Returns
Section titled “Returns”IUnitReference
The created IUnitReference.
IUnitReferenceFactory.TryCreate(string) Method
Section titled “IUnitReferenceFactory.TryCreate(string) Method”Tries to create a IUnitReference with the specified identifier.
HAKOM.ErrorHandling.Core.Net.Api.Result<HAKOM.TSM.Net.Api.Units.Persistence.References.IUnitReference> TryCreate(string identifier);Parameters
Section titled “Parameters”identifier System.String
The identifier for the IUnitReference.
Returns
Section titled “Returns”HAKOM.ErrorHandling.Core.Net.Api.Result<IUnitReference>
A Result<TValue> of the created IUnitReference.
Remarks
Section titled “Remarks”The Result will provide additional information about success or failure.
IUnitReferenceFactory.TryCreate(string, IUnit) Method
Section titled “IUnitReferenceFactory.TryCreate(string, IUnit) Method”Tries to create a IUnitReference with the specified identifier.
HAKOM.ErrorHandling.Core.Net.Api.Result<HAKOM.TSM.Net.Api.Units.Persistence.References.IUnitReference> TryCreate(string identifier, HAKOM.TSM.Net.Api.Units.IUnit unit);Parameters
Section titled “Parameters”identifier System.String
The identifier for the IUnitReference.
unit IUnit
The IUnit to be associated with the reference.
Returns
Section titled “Returns”HAKOM.ErrorHandling.Core.Net.Api.Result<IUnitReference>
A Result<TValue> of the created IUnitReference.
Remarks
Section titled “Remarks”The Result will provide additional information about success or failure.