.env, JSON, YAML, SQL and Git config carry URLs marked with the serving catch, so a later request shows where the address came from. MCP exposes the marker. Switch: Flypaper__Drip__Signposts. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
19 lines
638 B
C#
19 lines
638 B
C#
using Flypaper.Core.Abstractions;
|
|
using Microsoft.Extensions.Options;
|
|
|
|
namespace Flypaper.Core.Strategies;
|
|
|
|
public sealed class FileDripStrategy(
|
|
FileProfile profile,
|
|
IOptionsMonitor<DripOptions> options,
|
|
IRandomSource random,
|
|
TimeProvider timeProvider) : DripStrategy(options, random, timeProvider)
|
|
{
|
|
public override string Name => profile.Name;
|
|
|
|
public override string MediaType => profile.MediaType;
|
|
|
|
protected override IEnumerable<string> Content(IRandomSource random, ITrapChannel channel, DripOptions options) =>
|
|
profile.Generate(random, options.Signposts ? SignpostLinks.For(channel) : null);
|
|
}
|