Exemplo n.º 1
0
 public Task UpdateAsync(CircuitState state, CancellationToken token, bool continueOnCapturedContext)
 {
     Interlocked.Exchange(ref this.storedState, state);
     return(Constants.CompletedTask);
 }
Exemplo n.º 2
0
 public void Update(CircuitState state) =>
 Interlocked.Exchange(ref this.storedState, state);