コード例 #1
0
 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);
 }