IUnitConversionStoreFactory Interface
A factory used to create instances of IUnitConversionStore.
public interface IUnitConversionStoreFactoryMethods
Section titled “Methods”IUnitConversionStoreFactory.Create(IStorageProvider, IUnitStore, CancellationToken) Method
Section titled “IUnitConversionStoreFactory.Create(IStorageProvider, IUnitStore, CancellationToken) Method”Creates an instance of an IUnitConversionStore using the specified storageProvider.
System.Threading.Tasks.Task<HAKOM.TSM.Net.Api.Units.Persistence.IUnitConversionStore> 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));Parameters
Section titled “Parameters”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.
Returns
Section titled “Returns”System.Threading.Tasks.Task<IUnitConversionStore>
A System.Threading.Tasks.Task<> of the created IUnitConversionStore.
IUnitConversionStoreFactory.TryCreate(IStorageProvider, IUnitStore, CancellationToken) Method
Section titled “IUnitConversionStoreFactory.TryCreate(IStorageProvider, IUnitStore, CancellationToken) Method”Tries to create an instance of an IUnitConversionStore using the specified storageProvider.
System.Threading.Tasks.Task<HAKOM.ErrorHandling.Core.Net.Api.Result<HAKOM.TSM.Net.Api.Units.Persistence.IUnitConversionStore>> 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));Parameters
Section titled “Parameters”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.
Returns
Section titled “Returns”System.Threading.Tasks.Task<HAKOM.ErrorHandling.Core.Net.Api.Result<IUnitConversionStore>>
A System.Threading.Tasks.Task<> of Result<TValue> containing the created IUnitConversionStore.
Remarks
Section titled “Remarks”The Result will provide additional information about success or failure.