private void OnGateCampAdded(GateCampMessageModel gatecamp) { lock (this) { _gateCamps.Add(gatecamp); } Application.Current.Dispatcher.BeginInvoke(new Action(() => { GateCampAdded?.Invoke(gatecamp); })); }
private void OnGateCampAdded(GateCamp gatecamp) { GateCampAdded?.Invoke(gatecamp); }