creamy-nail-67991
09/10/2021, 7:59 AMInputList<Union<string, FrontDoorProtocol>> protocols = new InputList<Union<string, FrontDoorProtocol>>();
await foreach (var protocol in acceptedProtocols)
{
protocols.Add(protocol);
}
return protocols;
bumpy-grass-54508
09/10/2021, 1:29 PMInputList<string> acceptedProtocols = ...
InputList<Union<string, FrontDoorProtocol>> protocols = acceptedProtocols.Apply(list =>
list.Select(x => buildUnion(x, ...));
creamy-nail-67991
09/10/2021, 2:28 PMUnion.From()
factory methodAcceptedProtocols = rule.AcceptedProtocols.Apply(protocolArray => protocolArray.Select(Union<string, FrontDoorProtocol>.FromT1))
Just for completeness in case someone else looks that thread.