예제 #1
0
 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);
     }
 }
예제 #2
0
 public async Task UpdateAsync(StateTypes.StateMessage message)
 {
     State = StateModule.updateUsingStandardClock(message, State);
     OnChange?.Invoke();
     await SyncCoreAsync(isIncremental : true, ignoreIfSynchronizing : false);
 }