19 lines
573 B
C#
19 lines
573 B
C#
using Flypaper.Core.Abstractions;
|
|
using Microsoft.Extensions.Options;
|
|
|
|
namespace Flypaper.Core.Strategies;
|
|
|
|
public sealed class HtmlDripStrategy(
|
|
IOptionsMonitor<DripOptions> options,
|
|
IRandomSource random,
|
|
TimeProvider timeProvider) : DripStrategy(options, random, timeProvider)
|
|
{
|
|
public const string StrategyName = "html-drip";
|
|
|
|
public override string Name => StrategyName;
|
|
|
|
public override string MediaType => "text/html; charset=utf-8";
|
|
|
|
protected override IEnumerable<string> Content(IRandomSource random) => HtmlContent.Generate(random);
|
|
}
|