Microsoft.Ccr.Core.Choice.Choice C# (CSharp) Method

Choice() public method

public Choice ( ) : System
return System
        public Choice(params ReceiverTask[] branches)
        {
            foreach (var b in branches) {
                if (b.State == ReceiverTaskState.Persistent)
                    throw new ArgumentOutOfRangeException ("branches", "Cannot use with Choise a Receiver in persistent mode");
            }
            this.branches = branches;
        }