Beispiel #1
0
 private void AssertState(PromiseServerStates state)
 {
     if (state != InternalState.Status)
     {
         throw new InvalidOperationException("Invalid state, actual " + InternalState.Status + " while expected is " + state);
     }
 }
Beispiel #2
0
 private void AssertState(PromiseServerStates state)
 {
     if (state != InternalState.Status)
     {
         throw new InvalidOperationException($"Invalid state, actual {InternalState.Status} while expected is {state}");
     }
 }