Ejemplo n.º 1
0
 private void HandleWeatherForecastEvent(object sender, WeatherEventArgs e)
 {
     Debug.Print($"Subscriver {id} received event: {e.Date}, {e.Temeperature}");
 }
Ejemplo n.º 2
0
 protected virtual void OnRaiseWeatherForecastEvent(WeatherEventArgs e)
 {
     //WeatherForecastEvent(this, e);
     WeatherForecastEvent?.Invoke(this, e);
 }