Class ProtoTestAttachmentPublisher

Namespace
ProtoTest.Core
Assembly
ProtoTest.Core.dll

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

attachment ProtoTestAttachment
cancellationToken CancellationToken

Returns

ValueTask

PublishFileAsync(string, ProtoTestAttachment, CancellationToken)

Publishes one materialized file to the framework.

protected abstract ValueTask PublishFileAsync(string path, ProtoTestAttachment attachment, CancellationToken cancellationToken)

Parameters

path string
attachment ProtoTestAttachment
cancellationToken CancellationToken

Returns

ValueTask