ITimeSeriesValidator<TStorageProvider> Interface
Validates the correctness of the settings of ITimeSeries objects for the storage provider.
public interface ITimeSeriesValidator<TStorageProvider> where TStorageProvider : HAKOM.Persistence.Core.Net.Api.Storage.IStorageProviderType parameters
Section titled “Type parameters”TStorageProvider
Type of the storage provider.
Methods
Section titled “Methods”ITimeSeriesValidator<TStorageProvider>.TryValidateForStorage(ITimeSeries) Method
Section titled “ITimeSeriesValidator<TStorageProvider>.TryValidateForStorage(ITimeSeries) Method”Tries to validate the given timeSeries and returns one exception or an aggregate exception in the Result if validation failures occur.
HAKOM.ErrorHandling.Core.Net.Api.Result<bool> TryValidateForStorage(HAKOM.TSM.Net.Api.TimeSeries.ITimeSeries timeSeries);Parameters
Section titled “Parameters”timeSeries ITimeSeries
The ITimeSeries to be validated.
Returns
Section titled “Returns”HAKOM.ErrorHandling.Core.Net.Api.Result<System.Boolean>
A Result containing either a boolean, if successful, or exceptions, if not.
ITimeSeriesValidator<TStorageProvider>.ValidateForStorage(ITimeSeries) Method
Section titled “ITimeSeriesValidator<TStorageProvider>.ValidateForStorage(ITimeSeries) Method”Validates the time series and throws one exception or an aggregate exception if multiple validation failures occur.
bool ValidateForStorage(HAKOM.TSM.Net.Api.TimeSeries.ITimeSeries timeSeries);Parameters
Section titled “Parameters”timeSeries ITimeSeries
The ITimeSeries to be validated.
Returns
Section titled “Returns”System.Boolean
True if the validation was successful.
Was this page helpful?Thanks for your feedback!