コード例 #1
0
 public BiscuitMakerModule(MachineModulesSynchronizers synchronizers, BiscuitCounterState biscuitCounterState, IMessageIOProvider message) : base(message)
 {
     this.rotationsCountdown      = synchronizers.rotationsCountdownEvent;
     this.newBiscuitOnTheLine     = synchronizers.newBiscuitOnTheLineEvent;
     this.lineIsEmptyEvent        = synchronizers.lineIsEmptyEvent;
     this.cancellationTokenSource = synchronizers.cancellationTokenSource;
     biscuitMakerThread           = new Thread(ThreadStartDelagate)
     {
         Name = Name
     };
 }
コード例 #2
0
 public ThermometerModule(
     TemperatureState temperatureState,
     MachineModulesSynchronizers synchronizers,
     IMessageIOProvider message) : base(message)
 {
     this.temperatureState        = temperatureState;
     this.reachMaxTempEvent       = synchronizers.reachMaxTempEvent;
     this.reachMinTempEvent       = synchronizers.reachMinTempEvent;
     this.lineIsEmptyEvent        = synchronizers.lineIsEmptyEvent;
     this.cancellationTokenSource = synchronizers.cancellationTokenSource;
     thermometerThread            = new Thread(ThreadStartDelagate)
     {
         Name = Name
     };
 }
コード例 #3
0
ファイル: MotorModule.cs プロジェクト: ivivanov/CookieFactory
 public MotorModule(MachineModulesSynchronizers synchronizers, BiscuitCounterState biscuitCounterState, IMessageIOProvider message) : base(message)
 {
     this.ovenIsReadyEvent        = synchronizers.ovenIsReadyEvent;
     this.rotationsCountdown      = synchronizers.rotationsCountdownEvent;
     this.biscuitCounterState     = biscuitCounterState;
     this.cancellationTokenSource = synchronizers.cancellationTokenSource;
     this.motorThread             = new Thread(ThreadStartDelagate)
     {
         Name = Name
     };
     this.motorThread = new Thread(ThreadStartDelagate)
     {
         Name = Name
     };
 }
コード例 #4
0
 public OvenModule(
     HeatingModule heatingModule,
     ThermometerModule thermometerModule,
     TemperatureState temperatureState,
     IMessageIOProvider message,
     MachineModulesSynchronizers synchronizers) : base(message)
 {
     this.temperatureState        = temperatureState;
     this.heatingModule           = heatingModule;
     this.thermometerModule       = thermometerModule;
     this.ovenIsReadyEvent        = synchronizers.ovenIsReadyEvent;
     this.lineIsEmptyEvent        = synchronizers.lineIsEmptyEvent;
     this.cancellationTokenSource = synchronizers.cancellationTokenSource;
     ovenThread = new Thread(ThreadStartDelagate)
     {
         Name = Name
     };
 }