Skip to content

StreamDeliveryMethodJsonConverter Class

Serialization of the polymorphic delivery object, dispatching on the "method" member (SSF 1.0 Section 6.1). An unknown method URI is rejected: a stream whose delivery method this side cannot operate is a configuration to refuse, not to carry around half-parsed.

C#
public sealed class StreamDeliveryMethodJsonConverter : System.Text.Json.Serialization.JsonConverter<Abblix.SharedSignals.Model.Delivery.StreamDeliveryMethod>

Inheritance System.ObjectSystem.Text.Json.Serialization.JsonConverterSystem.Text.Json.Serialization.JsonConverter<StreamDeliveryMethod> → StreamDeliveryMethodJsonConverter

Methods

StreamDeliveryMethodJsonConverter.CanConvert(Type) Method

Handles exactly the abstract base. The concrete types serialize through their ordinary contracts; matching them here would re-enter this converter without end.

C#
public override bool CanConvert(System.Type typeToConvert);

Parameters

typeToConvert System.Type

The type the serializer asks about.

Returns

System.Boolean