Exemplo n.º 1
0
 public void Setup()
 {
     _weatherChannel = new WeatherChannel();
     _isSubscribed   = false;
     _triggerCount   = 0;
 }
Exemplo n.º 2
0
 public WeatherPublisher(IWeatherChannel weatherChannel)
 {
     _weatherChannel = weatherChannel;
 }
Exemplo n.º 3
0
 public WeatherSubscriber(string name, IWeatherChannel weatherChannel)
 {
     Name            = name;
     _weatherChannel = weatherChannel;
     _weatherChannel.Subscribe(name, OnProcessedDataReceived);
 }