fix: make cache control class abstract
This commit is contained in:
@@ -5,7 +5,7 @@ namespace AnthropicClient.Models;
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents the cache control to be used for content.
|
/// Represents the cache control to be used for content.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class CacheControl
|
public abstract class CacheControl
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the type of the cache control.
|
/// Gets the type of the cache control.
|
||||||
@@ -18,7 +18,7 @@ public class CacheControl
|
|||||||
/// <param name="type">The type of the cache control.</param>
|
/// <param name="type">The type of the cache control.</param>
|
||||||
/// <returns>A new instance of the <see cref="CacheControl"/> class.</returns>
|
/// <returns>A new instance of the <see cref="CacheControl"/> class.</returns>
|
||||||
/// <exception cref="ArgumentException">Thrown when the type is null or whitespace.</exception>
|
/// <exception cref="ArgumentException">Thrown when the type is null or whitespace.</exception>
|
||||||
public CacheControl(string type)
|
protected CacheControl(string type)
|
||||||
{
|
{
|
||||||
ArgumentValidator.ThrowIfNullOrWhitespace(type, nameof(type));
|
ArgumentValidator.ThrowIfNullOrWhitespace(type, nameof(type));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user