Skip to content
Documentation

ITimeSeriesBlockDataSerializer<TValue,TCompressedValue> Interface

Interface for serializing and deserializing time series block data.

public interface ITimeSeriesBlockDataSerializer<TValue,TCompressedValue> : HAKOM.TSM.Net.Api.Data.TimeSeries.Compression.ITimeSeriesBlockDataSerializer, HAKOM.DependencyInjection.Core.Net.Api.IRequiresConfiguration
where TValue : System.IComparable<TValue>, System.IEquatable<TValue>

TValue

The type of values in the time series data.

TCompressedValue

The type of values in the compressed time series data.

Implements ITimeSeriesBlockDataSerializer, IRequiresConfiguration

ITimeSeriesBlockDataSerializer<TValue,TCompressedValue>.Configure(CompressionMode) Method

Section titled “ITimeSeriesBlockDataSerializer<TValue,TCompressedValue>.Configure(CompressionMode) Method”

Configures the serializer for CompressionMode.

void Configure(HAKOM.TSM.Net.Api.Data.TimeSeries.Compression.CompressionMode compressionMode);

compressionMode CompressionMode

The compression mode to use.

ITimeSeriesBlockDataSerializer<TValue,TCompressedValue>.Deserialize(IAsyncEnumerable<ICompressedTimeSeriesData<TCompressedValue>>, CancellationToken) Method

Section titled “ITimeSeriesBlockDataSerializer<TValue,TCompressedValue>.Deserialize(IAsyncEnumerable<ICompressedTimeSeriesData<TCompressedValue>>, CancellationToken) Method”

Deserializes the given compressed time series data.

System.Collections.Generic.IAsyncEnumerable<HAKOM.TSM.Net.Api.Data.TimeSeries.Compression.ITimeSeriesBlockData<TValue>> Deserialize(System.Collections.Generic.IAsyncEnumerable<HAKOM.TSM.Net.Api.Data.TimeSeries.Compression.ICompressedTimeSeriesData<TCompressedValue>> compressedTimeSeriesData, System.Threading.CancellationToken cancellationToken);

compressedTimeSeriesData System.Collections.Generic.IAsyncEnumerable<HAKOM.TSM.Net.Api.Data.TimeSeries.Compression.ICompressedTimeSeriesData<TCompressedValue>>

The list of ICompressedTimeSeriesData<TCompressedValue> to deserialize.

cancellationToken System.Threading.CancellationToken

A token that may be used to cancel the operation.

System.Collections.Generic.IAsyncEnumerable<HAKOM.TSM.Net.Api.Data.TimeSeries.Compression.ITimeSeriesBlockData<TValue>>
An System.Collections.Generic.IAsyncEnumerable<> of time series block data.

ITimeSeriesBlockDataSerializer<TValue,TCompressedValue>.Serialize(IAsyncEnumerable<ITimeSeriesBlockData<TValue>>, CancellationToken) Method

Section titled “ITimeSeriesBlockDataSerializer<TValue,TCompressedValue>.Serialize(IAsyncEnumerable<ITimeSeriesBlockData<TValue>>, CancellationToken) Method”

Serializes the given time series block data.

System.Collections.Generic.IAsyncEnumerable<HAKOM.TSM.Net.Api.Data.TimeSeries.Compression.ICompressedTimeSeriesData<TCompressedValue>> Serialize(System.Collections.Generic.IAsyncEnumerable<HAKOM.TSM.Net.Api.Data.TimeSeries.Compression.ITimeSeriesBlockData<TValue>> timeSeriesBlockData, System.Threading.CancellationToken cancellationToken);

timeSeriesBlockData System.Collections.Generic.IAsyncEnumerable<HAKOM.TSM.Net.Api.Data.TimeSeries.Compression.ITimeSeriesBlockData<TValue>>

The list of ITimeSeriesBlockData<TValue> to serialize.

cancellationToken System.Threading.CancellationToken

A token that may be used to cancel the operation.

System.Collections.Generic.IAsyncEnumerable<HAKOM.TSM.Net.Api.Data.TimeSeries.Compression.ICompressedTimeSeriesData<TCompressedValue>>
An System.Collections.Generic.IAsyncEnumerable<> of compressed time series block data.

ITimeSeriesBlockDataSerializer<TValue,TCompressedValue>.TryDeserialize(IAsyncEnumerable<ICompressedTimeSeriesData<TCompressedValue>>, CancellationToken) Method

Section titled “ITimeSeriesBlockDataSerializer<TValue,TCompressedValue>.TryDeserialize(IAsyncEnumerable<ICompressedTimeSeriesData<TCompressedValue>>, CancellationToken) Method”

Deserializes the given serialized time series block data.

System.Collections.Generic.IAsyncEnumerable<HAKOM.ErrorHandling.Core.Net.Api.Result<HAKOM.TSM.Net.Api.Data.TimeSeries.Compression.ITimeSeriesBlockData<TValue>>> TryDeserialize(System.Collections.Generic.IAsyncEnumerable<HAKOM.TSM.Net.Api.Data.TimeSeries.Compression.ICompressedTimeSeriesData<TCompressedValue>> compressedTimeSeriesData, System.Threading.CancellationToken cancellationToken);

compressedTimeSeriesData System.Collections.Generic.IAsyncEnumerable<HAKOM.TSM.Net.Api.Data.TimeSeries.Compression.ICompressedTimeSeriesData<TCompressedValue>>

The list of ICompressedTimeSeriesData<TCompressedValue> to deserialize.

cancellationToken System.Threading.CancellationToken

A token that may be used to cancel the operation.

System.Collections.Generic.IAsyncEnumerable<HAKOM.ErrorHandling.Core.Net.Api.Result<HAKOM.TSM.Net.Api.Data.TimeSeries.Compression.ITimeSeriesBlockData<TValue>>>
A stream of Result<TValue> of the deserialized time series block data.

ITimeSeriesBlockDataSerializer<TValue,TCompressedValue>.TrySerialize(IAsyncEnumerable<ITimeSeriesBlockData<TValue>>, CancellationToken) Method

Section titled “ITimeSeriesBlockDataSerializer<TValue,TCompressedValue>.TrySerialize(IAsyncEnumerable<ITimeSeriesBlockData<TValue>>, CancellationToken) Method”

Serializes the given time series block data.

System.Collections.Generic.IAsyncEnumerable<HAKOM.ErrorHandling.Core.Net.Api.Result<HAKOM.TSM.Net.Api.Data.TimeSeries.Compression.ICompressedTimeSeriesData<TCompressedValue>>> TrySerialize(System.Collections.Generic.IAsyncEnumerable<HAKOM.TSM.Net.Api.Data.TimeSeries.Compression.ITimeSeriesBlockData<TValue>> timeSeriesBlockData, System.Threading.CancellationToken cancellationToken);

timeSeriesBlockData System.Collections.Generic.IAsyncEnumerable<HAKOM.TSM.Net.Api.Data.TimeSeries.Compression.ITimeSeriesBlockData<TValue>>

The list of ITimeSeriesBlockData<TValue> to serialize.

cancellationToken System.Threading.CancellationToken

A token that may be used to cancel the operation.

System.Collections.Generic.IAsyncEnumerable<HAKOM.ErrorHandling.Core.Net.Api.Result<HAKOM.TSM.Net.Api.Data.TimeSeries.Compression.ICompressedTimeSeriesData<TCompressedValue>>>
An System.Collections.Generic.IAsyncEnumerable<> containing a Result<TValue> of the serialized time series block data.

© 2026 Volue.Version v0.6.38017 November 2026