* Incremental work on persistent file cache * Rename providers to handlers * Implement zip file caching for resumable downloads * Implement partial download for zipped files * Allow executing workflows using GET verb * Implement custom header for correlating downloads * Rename FileName to Filename for consistency * Update interface XML comment * Cleanup * Fix that source Downloadables were executed even when cached zip exists * Make download correlation ID optional
26 lines
806 B
C#
26 lines
806 B
C#
using Elsa.Http.Contexts;
|
|
using Elsa.Http.Models;
|
|
|
|
namespace Elsa.Http.Contracts;
|
|
|
|
/// <summary>
|
|
/// Provides downloadables from the specified content, if supported.
|
|
/// </summary>
|
|
public interface IDownloadableContentHandler
|
|
{
|
|
/// <summary>
|
|
/// The priority of this provider. Providers with lower priority are tried first.
|
|
/// </summary>
|
|
float Priority { get; }
|
|
|
|
/// <summary>
|
|
/// Returns true if this provider supports the specified content.
|
|
/// </summary>
|
|
/// <param name="content">The content to check.</param>
|
|
bool GetSupportsContent(object content);
|
|
|
|
/// <summary>
|
|
/// Returns a list of downloadables from the specified content.
|
|
/// </summary>
|
|
IEnumerable<Func<ValueTask<Downloadable>>> GetDownloadablesAsync(DownloadableContext context);
|
|
} |