private async void OnSourceValueUpdated(object _, ValueUpdatedEvent <TSource, TSourceUpdates> args) { try { var task = _mapUpdatesFunc is null ? RefreshValue(args.Version) : UpdateValue(args.NewValue, args.Updates, args.Version); await task.ConfigureAwait(false); } catch { // What should happen here?? } }
private void PublishValueUpdatedEvent(T previousValue, TUpdates updates, TimeSpan duration) { var onValueUpdatedEvent = OnValueUpdated; if (onValueUpdatedEvent is null) { return; } var message = new ValueUpdatedEvent <T, TUpdates>( _value, previousValue, updates, duration, _version); onValueUpdatedEvent(this, message); }