Skip to content

Report a distribution channel's discriminator

Expose the class-name discriminator used by channel options.

Field Value
Operation ID OP-009
Trigger A caller or serializer reads DistributionMethodType from a distribution-channel object.
Inputs Concrete channel type parameter T.
Outputs Channel discriminator string.
Primary components DistributionMethod<T>.DistributionMethodType
Entry point Business\SAIF.Business.Policy.Audit.ApiCalls\DistributionMethod.cs

Steps

  1. Return typeof(T).Name from DistributionMethodType so the active channel advertises its own class name as the discriminator (BR-AAC-022).

Process flow

The following diagram visualizes this operation's control flow.

flowchart TD
  Start([Read DistributionMethodType]) --> Name["Resolve typeof(T).Name"]
  Name --> Done([Return discriminator])

Failure and edge-case behavior

  • Renaming a channel class changes the discriminator emitted by this library.

Sources

  • Business\SAIF.Business.Policy.Audit.ApiCalls\DistributionMethod.cs