Skip to content

PollDeliveryTransport Class

The HTTP transport a receiver polls a transmitter's pending tokens over (RFC 8936).

C#
public static class PollDeliveryTransport

Inheritance System.Object → PollDeliveryTransport

Fields

PollDeliveryTransport.HttpClientName Field

The name the transport's client is registered under, published so a host can configure it without copying the string: services.AddHttpClient(PollDeliveryTransport.HttpClientName) reaches the same client the poll client speaks over.

C#
public const string HttpClientName = "PollClient";

Field Value

System.String

Remarks

The value is the client's name because this is a typed client, and that is the logical name AddHttpClient<TClient> gives it. A poll may be a long one the transmitter holds open, so the timeout a host sets here is the one that decides how long it waits.