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