Class ProtoTestAttachmentPublisher
Materializes an attachment to a file and hands the path to the framework. Every adapter shares this shape, so a publisher declares only what its framework does with the file.
public abstract class ProtoTestAttachmentPublisher : IProtoTestAttachmentPublisher
- Inheritance
-
ProtoTestAttachmentPublisher
- Implements
- Inherited Members
- Extension Methods
Methods
PublishAsync(ProtoTestAttachment, CancellationToken)
public ValueTask PublishAsync(ProtoTestAttachment attachment, CancellationToken cancellationToken = default)
Parameters
attachmentProtoTestAttachmentcancellationTokenCancellationToken
Returns
PublishFileAsync(string, ProtoTestAttachment, CancellationToken)
Publishes one materialized file to the framework.
protected abstract ValueTask PublishFileAsync(string path, ProtoTestAttachment attachment, CancellationToken cancellationToken)
Parameters
pathstringattachmentProtoTestAttachmentcancellationTokenCancellationToken