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/StoreCatalogPartition.cs

26 lines
652 B

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

Powered by TurnKey Linux.