8 references to SafeAssert
Microsoft.AspNetCore.SignalR.Client.Core (8)
HubConnection.cs (8)
486SafeAssert(_state.CurrentConnectionStateUnsynchronized == null, "We already have a connection!");
1277SafeAssert(ReferenceEquals(expectedConnectionState, connectionState), "The connection state changed unexpectedly!");
1739SafeAssert(ReferenceEquals(_state.CurrentConnectionStateUnsynchronized, connectionState),
1873SafeAssert(ReferenceEquals(_state.CurrentConnectionStateUnsynchronized, null),
1914SafeAssert(ReferenceEquals(_state.CurrentConnectionStateUnsynchronized, null),
2370SafeAssert(ReferenceEquals(_hubConnection._state.CurrentConnectionStateUnsynchronized, this),
2482public void AssertInConnectionLock([CallerMemberName] string? memberName = null, [CallerFilePath] string? fileName = null, [CallerLineNumber] int lineNumber = 0) => SafeAssert(_connectionLock.CurrentCount == 0, "We're not in the Connection Lock!", memberName, fileName, lineNumber);
2488SafeAssert(CurrentConnectionStateUnsynchronized != null, "We don't have a connection!", memberName, fileName, lineNumber);