BililiveRecorder/BililiveRecorder.Flv/Pipeline/Actions/PipelineLogAlternativeHeaderAction.cs

19 lines
541 B
C#
Raw Normal View History

2021-02-08 16:51:19 +08:00
using System;
using System.Collections.Generic;
using System.Linq;
namespace BililiveRecorder.Flv.Pipeline.Actions
2021-02-08 16:51:19 +08:00
{
public class PipelineLogAlternativeHeaderAction : PipelineAction
{
public IReadOnlyList<Tag> Tags { get; set; }
public PipelineLogAlternativeHeaderAction(IReadOnlyList<Tag> tags)
{
this.Tags = tags ?? throw new ArgumentNullException(nameof(tags));
}
public override PipelineAction Clone() => new PipelineLogAlternativeHeaderAction(this.Tags.ToArray());
}
}