elsa-core/src/modules/Elsa.Http/ContentWriters/IHttpContentFactory.cs
2023-01-24 21:48:05 +01:00

17 lines
595 B
C#

namespace Elsa.Http.ContentWriters;
/// <summary>
/// Creates a concrete <see cref="HttpContent"/> instance based on the specified content type.
/// </summary>
public interface IHttpContentFactory
{
/// <summary>
/// Returns a value indicating whether this factory supports the specified content type.
/// </summary>
bool SupportsContentType(string contentType);
/// <summary>
/// Creates a concrete <see cref="HttpContent"/> derivative based on the specified content type.
/// </summary>
HttpContent CreateHttpContent(object content, string contentType);
}