23 lines
948 B
C#
23 lines
948 B
C#
namespace w4c_workflows.Services.Nodes.Binary;
|
|
|
|
/// <summary>
|
|
/// Configuration for the filesystem-backed binary store, bound from the
|
|
/// <c>Nodes:BinaryStore</c> section. When <see cref="RootPath"/> is empty the
|
|
/// store falls back to a <c>binary-store</c> directory beside the application,
|
|
/// which is the right place for a container without a mounted volume.
|
|
/// </summary>
|
|
public sealed class BinaryStoreOptions
|
|
{
|
|
/// <summary>Configuration section this options object binds from.</summary>
|
|
public const string SectionName = "Nodes:BinaryStore";
|
|
|
|
/// <summary>Directory that holds stored payloads and their metadata sidecars.</summary>
|
|
public string RootPath { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// Largest payload the store will accept, in bytes. <c>0</c> disables the
|
|
/// store-level cap; the HTTP node still enforces its own response quota.
|
|
/// </summary>
|
|
public long MaxBytes { get; set; }
|
|
}
|