public async Task UpdateAsync(StateTypes.StateMessage message) { if (State == null) { throw new InvalidOperationException("Can not start synchronizing until the service is initialized."); } State = StateModule.updateUsingStandardClock(message, State); OnChange?.Invoke(); if (StateModule.hasChanges(State)) { await SyncCoreAsync(isIncremental : true, ignoreIfSynchronizing : false); } }
public async Task UpdateAsync(StateTypes.StateMessage message) { State = StateModule.updateUsingStandardClock(message, State); OnChange?.Invoke(); await SyncCoreAsync(isIncremental : true, ignoreIfSynchronizing : false); }