protected void AttachConductor(TestConductor tc)
{
var timeout = tc.Settings.BarrierTimeout;
try
{
//TODO: Async stuff
if (SelfIndex == 0)
tc.StartController(InitialParticipants, _myself, _controllerAddr).Wait(timeout);
else
tc.StartClient(_myself, _controllerAddr).Wait(timeout);
}
catch (Exception e)
{
throw new Exception("failure while attaching new conductor", e);
}
TestConductor = tc;
}