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