IPostaSectionClient
Interfacenet10.0
Common operations exposed by each Posta API section.
namespace CommunityToolkit.Aspire.Posta.Clients;
public interface IPostaSectionClient{ // ...}Methods3
Section titled MethodsSendAsync(PostaEndpoint, PostaRequest?, CancellationToken)abstractTask<TResponse?>Invokes an endpoint and deserializes its JSON response.
SendAsync(PostaEndpoint, PostaRequest?, CancellationToken)abstractTask<JsonDocument?>Invokes an endpoint and returns its JSON response.
SendStreamAsync(PostaEndpoint, PostaRequest?, CancellationToken)abstractInvokes an endpoint and returns a streaming response. Disposing the result disposes the HTTP response.