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