コード例 #1
0
 // GarageMediator will request to start the servers, which will be granted
 // and its state moved into the listening state
 public override void Change(GarageMediator context)
 {
     context.MicroCommunication.StartServer();
     context.RFIDCommunication.StartServer();
     context.State = new MediatorListeningState(context);
 }
コード例 #2
0
 public override void Change(GarageMediator context)
 {
     context.State = new MediatorReadyState();
 }
コード例 #3
0
 // GarageMediator will request to start the servers, which will be granted
 // and its state moved into the listening state
 public override void Change(GarageMediator context)
 {
     context.MicroCommunication.StartServer();
     context.RFIDCommunication.StartServer();
     context.State = new MediatorListeningState(context);
 }