public Tuple <ParticipantImproved, ParticipantExtrinsicState> Create()
        {
            ParticipantType           type = GenerateType();
            ParticipantImproved       pi   = CreateParticipant(type);
            ParticipantExtrinsicState ps   = CreateParticipantExtrinsicState(type);

            return(new Tuple <ParticipantImproved, ParticipantExtrinsicState>(pi, ps));
        }
        public ParticipantImproved CreateParticipant(ParticipantType type)
        {
            if (!_sharedParticipants.ContainsKey(type))
            {
                _sharedParticipants.Add(type, new ParticipantImproved(new ParticipantIntrinsicState(type)));
            }

            ParticipantImproved p = _sharedParticipants[type];

            return(p);
        }
Пример #3
0
 public ParticipantWrapper(ParticipantImproved pi, ParticipantExtrinsicState pex)
 {
     _pi  = pi;
     _pex = pex;
 }