This message was deleted.
# general
s
This message was deleted.
1
b
i think you can do it with Apply instead of async/await - something like
Copy code
InputList<string> acceptedProtocols = ...

InputList<Union<string, FrontDoorProtocol>> protocols = acceptedProtocols.Apply(list =>
   list.Select(x => buildUnion(x, ...));
c
Thank you @bumpy-grass-54508 I think this will work. I completely missed the fact that has a
Union.From()
factory method
👍 1
Copy code
AcceptedProtocols = rule.AcceptedProtocols.Apply(protocolArray => protocolArray.Select(Union<string, FrontDoorProtocol>.FromT1))
Just for completeness in case someone else looks that thread.