using System.Diagnostics.CodeAnalysis;

namespace NevesCS.NonStatic.Clients
{
    public readonly record struct HttpClientCachedFactoryOptions
    {
        [SetsRequiredMembers]
        public HttpClientCachedFactoryOptions(TimeSpan maxLifetime)
        {
            MaxLifetime = maxLifetime;
        }

        public required readonly TimeSpan MaxLifetime { get; init; }
    }
}
