Table of Contents

Interface IInboundThreadResource

Namespace
Mailtrap.Inbound
Assembly
Mailtrap.Abstractions.dll

Represents an inbound thread resource.

public interface IInboundThreadResource : IRestResource
Inherited Members

Methods

Delete(CancellationToken)

Permanently deletes the thread, represented by the current resource instance.
Inbound messages in the thread are removed; sent messages are preserved.

Task Delete(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken
Token to control operation cancellation.

Returns

Task

A task that represents the asynchronous delete operation.

GetDetails(CancellationToken)

Gets the thread (with its messages embedded, oldest first), represented by the current resource instance.

Task<InboundThread> GetDetails(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Token to control operation cancellation.

Returns

Task<InboundThread>

Requested thread details.