* Io module and content strategies * Restructuring the folders and projects * Create zip activity + shared content resolver * Fixing build on github.com * Update src/modules/Elsa.IO/Services/ContentResolver.cs explicit nullable field Co-authored-by: Sipke Schoorstra <sipkeschoorstra@outlook.com> * QoL improvements * More QoL improvements + removing some logic duplications * Update src/modules/Elsa.IO.Compression/Activities/CreateZipArchive.cs avoiding duplicate extensions Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Assigning file path correctly to the variable * More QoL changes, new Elsa.IO.Http module, more modular content strategy * Addresing QoL review comments + Correct extension handling --------- Co-authored-by: lucas.hipolito <lukhipolito@yahoo.com.br> Co-authored-by: Sipke Schoorstra <sipkeschoorstra@outlook.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
21 lines
628 B
C#
21 lines
628 B
C#
using Elsa.Common.Codecs;
|
|
using Elsa.Common.Services;
|
|
using Elsa.Features.Abstractions;
|
|
using Elsa.Features.Services;
|
|
using JetBrains.Annotations;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace Elsa.Common.Features;
|
|
|
|
[UsedImplicitly]
|
|
public class StringCompressionFeature(IModule module) : FeatureBase(module)
|
|
{
|
|
public override void Apply()
|
|
{
|
|
Services
|
|
.AddSingleton<ICompressionCodecResolver, CompressionCodecResolver>()
|
|
.AddSingleton<ICompressionCodec, None>()
|
|
.AddSingleton<ICompressionCodec, GZip>()
|
|
.AddSingleton<ICompressionCodec, Zstd>();
|
|
}
|
|
} |