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.
Zero/ZeroLevel/Services/PartitionStorage/Partition/StoreFilePartition.cs

26 lines
682 B

2 years ago
using System;
namespace ZeroLevel.Services.PartitionStorage
{
/// <summary>
/// File partition, contains the method of forming the path
/// </summary>
2 years ago
public class StoreFilePartition<TKey, TMeta>
{
/// <summary>
/// Name of partition, just for info
/// </summary>
2 years ago
public string Name { get; }
/// <summary>
/// File name generator
/// </summary>
public Func<TKey, TMeta, string> FileNameExtractor { get; }
2 years ago
public StoreFilePartition(string name, Func<TKey, TMeta, string> pathExtractor)
{
Name = name;
FileNameExtractor = pathExtractor;
2 years ago
}
}
}

Powered by TurnKey Linux.