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¶
- Return
typeof(T).NamefromDistributionMethodTypeso 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.
Related documentation¶
Sources¶
Business\SAIF.Business.Policy.Audit.ApiCalls\DistributionMethod.cs