8 references to SafeAssert
Microsoft.AspNetCore.SignalR.Client.Core (8)
HubConnection.cs (8)
480SafeAssert(_state.CurrentConnectionStateUnsynchronized == null, "We already have a connection!"); 1271SafeAssert(ReferenceEquals(expectedConnectionState, connectionState), "The connection state changed unexpectedly!"); 1729SafeAssert(ReferenceEquals(_state.CurrentConnectionStateUnsynchronized, connectionState), 1863SafeAssert(ReferenceEquals(_state.CurrentConnectionStateUnsynchronized, null), 1904SafeAssert(ReferenceEquals(_state.CurrentConnectionStateUnsynchronized, null), 2360SafeAssert(ReferenceEquals(_hubConnection._state.CurrentConnectionStateUnsynchronized, this), 2472public 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); 2478SafeAssert(CurrentConnectionStateUnsynchronized != null, "We don't have a connection!", memberName, fileName, lineNumber);