You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
using System;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using ZeroLevel.Services.Serialization;
|
|
|
|
|
|
|
|
|
|
namespace ZeroLevel.Services.PartitionStorage.Interfaces
|
|
|
|
|
{
|
|
|
|
|
public interface IStoreSerializer<TKey, TInput, TValue>
|
|
|
|
|
{
|
|
|
|
|
Func<MemoryStreamWriter, TKey, Task> KeySerializer { get; }
|
|
|
|
|
|
|
|
|
|
Func<MemoryStreamWriter, TInput, Task> InputSerializer { get; }
|
|
|
|
|
|
|
|
|
|
Func<MemoryStreamReader, Task<DeserializeResult<TKey>>> KeyDeserializer { get; }
|
|
|
|
|
|
|
|
|
|
Func<MemoryStreamReader, Task<DeserializeResult<TInput>>> InputDeserializer { get; }
|
|
|
|
|
|
|
|
|
|
Func<MemoryStreamReader, Task<DeserializeResult<TValue>>> ValueDeserializer { get; }
|
|
|
|
|
}
|
|
|
|
|
}
|