IHakomDatabaseLogStoreFactory Interface
HAKOM.Logging.HakomDatabaseLog.Net.Api.Persistence
Section titled “HAKOM.Logging.HakomDatabaseLog.Net.Api.Persistence”Used to create IHakomDatabaseLogStore instances.
public interface IHakomDatabaseLogStoreFactoryMethods
Section titled “Methods”IHakomDatabaseLogStoreFactory.Create(string, CancellationToken) Method
Section titled “IHakomDatabaseLogStoreFactory.Create(string, CancellationToken) Method”Creates an instance of IHakomDatabaseLogStore for the specified repositoryName.
System.Threading.Tasks.Task<HAKOM.Logging.HakomDatabaseLog.Net.Api.Persistence.IHakomDatabaseLogStore> Create(string repositoryName, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));Parameters
Section titled “Parameters”repositoryName System.String
The name of the repository which the IHakomDatabaseLogStore will be created for.
cancellationToken System.Threading.CancellationToken
A token that may be used to cancel the operation.
Returns
Section titled “Returns”System.Threading.Tasks.Task<IHakomDatabaseLogStore>
A System.Threading.Tasks.Task<> of the created IHakomDatabaseLogStore.
IHakomDatabaseLogStoreFactory.TryCreate(string, CancellationToken) Method
Section titled “IHakomDatabaseLogStoreFactory.TryCreate(string, CancellationToken) Method”Tries to create an instance of IHakomDatabaseLogStore for the specified repositoryName.
System.Threading.Tasks.Task<HAKOM.ErrorHandling.Core.Net.Api.Result<HAKOM.Logging.HakomDatabaseLog.Net.Api.Persistence.IHakomDatabaseLogStore>> TryCreate(string repositoryName, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));Parameters
Section titled “Parameters”repositoryName System.String
The name of the repository which the IHakomDatabaseLogStore will be created for.
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<IHakomDatabaseLogStore>>
A Result<TValue> containing a new IHakomDatabaseLogStore instance.
Remarks
Section titled “Remarks”The Result will provide additional information about success or failure.