public CallScenario(CallControl callControl) { this.config = new CallBase01Config(); this.context = new CallBase01Context(callControl, this, this.config); this.context.Observer = ObserverTrace.Instance(traceName); this.context.EndHandler += new EventHandler <EventArgs>(StateMachineEnd); this.context.EnterInitialState(); }
private void InitializeEndpoint(CallControl callControl) { EndpointTest endpointAlice = new EndpointTest(); endpointAlice.Name = "Alice"; EndpointTest endpointBeatrice = new EndpointTest(); endpointBeatrice.Name = "Bob"; callControl.EndpointAdd(endpointAlice); callControl.EndpointAdd(endpointBeatrice); }
private void InitializeCallControl() { this.callControl = new CallControl(); this.callControl.StartedHandler += new StartedEventHandler(CallControlStarted); this.callControl.StoppedHandler += new StoppedEventHandler(CallControlStopped); }
private void InitializeScenario(CallControl callControl) { this.callScenario = new CallScenario(this.callControl); this.callScenario.EndHandler += new EventHandler <EventArgs>(CallScenarioEnd); }