mirror of https://github.com/ogoun/Zero.git
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.
19 lines
458 B
19 lines
458 B
using System;
|
|
|
|
namespace ZeroLevel.Services.Storages.PartitionFileSystemStorage
|
|
{
|
|
/// <summary>
|
|
/// Make part of full file path
|
|
/// </summary>
|
|
public class Partition<TKey>
|
|
{
|
|
public Partition(string name, Func<TKey, string> pathExtractor)
|
|
{
|
|
Name = name;
|
|
PathExtractor = pathExtractor;
|
|
}
|
|
public Func<TKey, string> PathExtractor { get; }
|
|
public string Name { get; }
|
|
}
|
|
}
|