19 lines
538 B
C#
19 lines
538 B
C#
namespace Elsa.Common.Codecs;
|
|
|
|
/// <summary>
|
|
/// Represents a compression strategy that does not compress or decompress the input.
|
|
/// </summary>
|
|
public class None : ICompressionCodec
|
|
{
|
|
/// <inheritdoc />
|
|
public ValueTask<string> CompressAsync(string input, CancellationToken cancellationToken)
|
|
{
|
|
return new ValueTask<string>(input);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
public ValueTask<string> DecompressAsync(string input, CancellationToken cancellationToken)
|
|
{
|
|
return new ValueTask<string>(input);
|
|
}
|
|
} |