17 lines
552 B
C#
17 lines
552 B
C#
using DeepDrftContent.FileDatabase.Abstractions;
|
|
using DeepDrftContent.FileDatabase.Models;
|
|
|
|
namespace DeepDrftContent.FileDatabase.Services;
|
|
|
|
/// <summary>
|
|
/// Factory for creating media vaults - simple dictionary-based approach
|
|
/// </summary>
|
|
public static class MediaVaultFactory
|
|
{
|
|
private static readonly IMediaTypeRegistry _registry = new SimpleMediaTypeRegistry();
|
|
|
|
public static async Task<MediaVault?> From(string rootPath, MediaVaultType mediaType)
|
|
{
|
|
return await _registry.CreateVaultAsync(mediaType, rootPath);
|
|
}
|
|
} |