f54c5ed54d
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
16 lines
431 B
C#
16 lines
431 B
C#
using Microsoft.Extensions.Configuration;
|
|
using MoneyMap.Services;
|
|
|
|
namespace MoneyMap.Mcp;
|
|
|
|
public class ConfigReceiptStorageOptions : IReceiptStorageOptions
|
|
{
|
|
public string ReceiptsBasePath { get; }
|
|
|
|
public ConfigReceiptStorageOptions(IConfiguration config)
|
|
{
|
|
ReceiptsBasePath = config["Receipts:StoragePath"]
|
|
?? throw new InvalidOperationException("Receipts:StoragePath not configured");
|
|
}
|
|
}
|