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();
 }
示例#2
0
        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);
        }
示例#3
0
 private void InitializeCallControl()
 {
     this.callControl = new CallControl();
     this.callControl.StartedHandler += new StartedEventHandler(CallControlStarted);
     this.callControl.StoppedHandler += new StoppedEventHandler(CallControlStopped);
 }
示例#4
0
 private void InitializeScenario(CallControl callControl)
 {
     this.callScenario             = new CallScenario(this.callControl);
     this.callScenario.EndHandler += new EventHandler <EventArgs>(CallScenarioEnd);
 }