IUnitConversionStore Interface
A data store used to create, read, update or delete unit conversions. Should only be instantiated by an IUnitConversionStoreFactory.
public interface IUnitConversionStore : HAKOM.Persistence.Core.Net.Api.Storage.IStore<HAKOM.Persistence.Core.Net.Api.Storage.IStorageProvider>Implements HAKOM.Persistence.Core.Net.Api.Storage.IStore<IStorageProvider>
Methods
Section titled “Methods”IUnitConversionStore.Configure(IStorageProvider, IUnitStore, CancellationToken) Method
Section titled “IUnitConversionStore.Configure(IStorageProvider, IUnitStore, CancellationToken) Method”Configures the unit conversion store with the given parameters.
System.Threading.Tasks.Task Configure(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
Propagates a notification if the operations should be canceled.
Returns
Section titled “Returns”IUnitConversionStore.Find(ITimeSeriesReference, CancellationToken) Method
Section titled “IUnitConversionStore.Find(ITimeSeriesReference, CancellationToken) Method”Finds all currently available unit conversions.
System.Collections.Generic.IAsyncEnumerable<HAKOM.TSM.Net.Api.Units.IUnitConversion> Find(HAKOM.TSM.Net.Api.TimeSeries.Persistence.References.ITimeSeriesReference timeSeriesReference, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));Parameters
Section titled “Parameters”timeSeriesReference ITimeSeriesReference
The ITimeSeriesReference to load the assigned conversion time series from.
cancellationToken System.Threading.CancellationToken
A token that may be used to cancel the operation.
Returns
Section titled “Returns”System.Collections.Generic.IAsyncEnumerable<IUnitConversion>
An System.Collections.Generic.IAsyncEnumerable<> containing all available unit conversions.
IUnitConversionStore.TryFind(ITimeSeriesReference, CancellationToken) Method
Section titled “IUnitConversionStore.TryFind(ITimeSeriesReference, CancellationToken) Method”Finds all currently available unit conversions.
System.Collections.Generic.IAsyncEnumerable<HAKOM.ErrorHandling.Core.Net.Api.Result<HAKOM.TSM.Net.Api.Units.IUnitConversion>> TryFind(HAKOM.TSM.Net.Api.TimeSeries.Persistence.References.ITimeSeriesReference timeSeriesReference, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));Parameters
Section titled “Parameters”timeSeriesReference ITimeSeriesReference
The ITimeSeriesReference to load the assigned conversion time series from.
cancellationToken System.Threading.CancellationToken
A token that may be used to cancel the operation.
Returns
Section titled “Returns”System.Collections.Generic.IAsyncEnumerable<HAKOM.ErrorHandling.Core.Net.Api.Result<IUnitConversion>>
An System.Collections.Generic.IAsyncEnumerable<> containing all available unit conversions in the form of Result<TValue>.