Skip to content
Documentation

IConstantUnitConversionStoreFactory Interface

A factory used to create instances of IConstantUnitConversionStore.

public interface IConstantUnitConversionStoreFactory

IConstantUnitConversionStoreFactory.Create(IStorageProvider, IUnitStore, CancellationToken) Method

Section titled “IConstantUnitConversionStoreFactory.Create(IStorageProvider, IUnitStore, CancellationToken) Method”

Creates an instance of an IConstantUnitConversionStore using the specified storageProvider.

System.Threading.Tasks.Task<HAKOM.TSM.Net.Api.Units.Persistence.IConstantUnitConversionStore> Create(HAKOM.Persistence.Core.Net.Api.Storage.IStorageProvider storageProvider, HAKOM.TSM.Net.Api.Units.Persistence.IUnitStore unitStore, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));

storageProvider IStorageProvider

The IStorageProvider used for read and write operations on the storage.

unitStore IUnitStore

The IUnitStore used for creating unit references.

cancellationToken System.Threading.CancellationToken

A token that may be used to cancel the operation.

System.Threading.Tasks.Task<IConstantUnitConversionStore>
A System.Threading.Tasks.Task<> of the created IConstantUnitConversionStore.

IConstantUnitConversionStoreFactory.TryCreate(IStorageProvider, IUnitStore, CancellationToken) Method

Section titled “IConstantUnitConversionStoreFactory.TryCreate(IStorageProvider, IUnitStore, CancellationToken) Method”

Tries to create an instance of an IConstantUnitConversionStore using the specified storageProvider.

System.Threading.Tasks.Task<HAKOM.ErrorHandling.Core.Net.Api.Result<HAKOM.TSM.Net.Api.Units.Persistence.IConstantUnitConversionStore>> TryCreate(HAKOM.Persistence.Core.Net.Api.Storage.IStorageProvider storageProvider, HAKOM.TSM.Net.Api.Units.Persistence.IUnitStore unitStore, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));

storageProvider IStorageProvider

The IStorageProvider used for read and write operations on the storage.

unitStore IUnitStore

The IUnitStore used for creating unit references.

cancellationToken System.Threading.CancellationToken

A token that may be used to cancel the operation.

System.Threading.Tasks.Task<HAKOM.ErrorHandling.Core.Net.Api.Result<IConstantUnitConversionStore>>
A System.Threading.Tasks.Task<> of Result<TValue> containing the created IConstantUnitConversionStore.

The Result will provide additional information about success or failure.

© 2026 Volue.Version v0.6.38017 November 2026