Skip to content

ReceiverAddressValidatingHandler Class

Puts ReceiverAddressPolicy on every push delivery request, redirects and rebinding included.

C#
public sealed class ReceiverAddressValidatingHandler : Abblix.Utils.AddressValidatingHttpMessageHandler

Inheritance System.ObjectSystem.Net.Http.HttpMessageHandlerSystem.Net.Http.DelegatingHandlerAddressValidatingHttpMessageHandler → ReceiverAddressValidatingHandler

Remarks

The delivery endpoint comes from the receiver, so the address has to be judged on the connection the socket actually makes, not only on the URL the receiver configured. The shared base (AddressValidatingHttpMessageHandler) refuses redirects and calls the policy immediately before each send; the policy is the same one the sender consults up front, so a statically bad endpoint is refused early and loudly, and a redirect or a rebinding is caught here on the request that would have carried it.

Constructors

ReceiverAddressValidatingHandler(ReceiverAddressPolicy) Constructor

Puts ReceiverAddressPolicy on every push delivery request, redirects and rebinding included.

C#
public ReceiverAddressValidatingHandler(Abblix.SharedSignals.Transmitter.ReceiverAddressPolicy addressPolicy);

Parameters

addressPolicy ReceiverAddressPolicy

Judges the address of a delivery endpoint.

Remarks

The delivery endpoint comes from the receiver, so the address has to be judged on the connection the socket actually makes, not only on the URL the receiver configured. The shared base (AddressValidatingHttpMessageHandler) refuses redirects and calls the policy immediately before each send; the policy is the same one the sender consults up front, so a statically bad endpoint is refused early and loudly, and a redirect or a rebinding is caught here on the request that would have carried it.