IAttributeStoreFactory Interface
Used to create IAttributeStore objects.
public interface IAttributeStoreFactoryMethods
Section titled “Methods”IAttributeStoreFactory.Create(IStorageProvider, IAttributeTypeStore, CancellationToken) Method
Section titled “IAttributeStoreFactory.Create(IStorageProvider, IAttributeTypeStore, CancellationToken) Method”Creates an instance of an IAttributeStore using the specified storageProvider.
System.Threading.Tasks.Task<HAKOM.TSM.Net.Api.Attributes.Persistence.IAttributeStore> Create(HAKOM.Persistence.Core.Net.Api.Storage.IStorageProvider storageProvider, HAKOM.TSM.Net.Api.Attributes.Persistence.IAttributeTypeStore attributeTypeStore, 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.
attributeTypeStore IAttributeTypeStore
The IAttributeTypeStore used for creating attribute type references.
cancellationToken System.Threading.CancellationToken
A token that may be used to cancel the operation.
Returns
Section titled “Returns”System.Threading.Tasks.Task<IAttributeStore>
A System.Threading.Tasks.Task<> of the created IAttributeStore.
IAttributeStoreFactory.Create(IStorageProvider, CancellationToken) Method
Section titled “IAttributeStoreFactory.Create(IStorageProvider, CancellationToken) Method”Creates an instance of an IAttributeStore using the specified storageProvider.
System.Threading.Tasks.Task<HAKOM.TSM.Net.Api.Attributes.Persistence.IAttributeStore> 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<IAttributeStore>
A System.Threading.Tasks.Task<> of the created IAttributeStore.
IAttributeStoreFactory.TryCreate(IStorageProvider, IAttributeTypeStore, CancellationToken) Method
Section titled “IAttributeStoreFactory.TryCreate(IStorageProvider, IAttributeTypeStore, CancellationToken) Method”Tries to create an instance of an IAttributeStore using the specified storageProvider.
System.Threading.Tasks.Task<HAKOM.ErrorHandling.Core.Net.Api.Result<HAKOM.TSM.Net.Api.Attributes.Persistence.IAttributeStore>> TryCreate(HAKOM.Persistence.Core.Net.Api.Storage.IStorageProvider storageProvider, HAKOM.TSM.Net.Api.Attributes.Persistence.IAttributeTypeStore attributeTypeStore, 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.
attributeTypeStore IAttributeTypeStore
The IAttributeTypeStore used for creating attribute type 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<IAttributeStore>>
A System.Threading.Tasks.Task<> of Result<TValue> containing the created IAttributeStore.
Remarks
Section titled “Remarks”The Result will provide additional information about success or failure.
IAttributeStoreFactory.TryCreate(IStorageProvider, CancellationToken) Method
Section titled “IAttributeStoreFactory.TryCreate(IStorageProvider, CancellationToken) Method”Tries to create an instance of an IAttributeStore using the specified storageProvider.
System.Threading.Tasks.Task<HAKOM.ErrorHandling.Core.Net.Api.Result<HAKOM.TSM.Net.Api.Attributes.Persistence.IAttributeStore>> 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<IAttributeStore>>
A System.Threading.Tasks.Task<> of Result<TValue> containing the created IAttributeStore.
Remarks
Section titled “Remarks”The Result will provide additional information about success or failure.