1 write to Error
Microsoft.AspNetCore.SignalR.Common (1)
Protocol\HandshakeResponseMessage.cs (1)
28Error = error;
14 references to Error
Microsoft.AspNetCore.SignalR.Client.Core (3)
HubConnection.cs (3)
1529if (message.Error != null) 1531Log.HandshakeServerError(_logger, message.Error); 1533$"Unable to complete handshake with the server due to an error: {message.Error}");
Microsoft.AspNetCore.SignalR.Common (2)
Protocol\HandshakeProtocol.cs (2)
93if (!string.IsNullOrEmpty(responseMessage.Error)) 95writer.WriteString(ErrorPropertyNameBytes, responseMessage.Error);
Microsoft.AspNetCore.SignalR.Common.Tests (2)
Internal\Protocol\HandshakeProtocolTests.cs (2)
55Assert.Equal(error, response.Error); 65Assert.Equal("dummy", response.Error);
Microsoft.AspNetCore.SignalR.Core (1)
HubConnectionContext.cs (1)
440if (message.Error == null)
Microsoft.AspNetCore.SignalR.Tests (6)
HubConnectionHandlerTests.cs (6)
208Assert.Equal("Handshake was canceled.", client.HandshakeResponseMessage.Error); 264Assert.Equal("The protocol 'CustomProtocol' is not supported.", client.HandshakeResponseMessage.Error); 290Assert.Equal("Cannot use the 'messagepack' protocol on the current transport. The transport does not support 'Binary' transfer format.", client.HandshakeResponseMessage.Error); 323Assert.Equal("Handshake was canceled.", ((HandshakeResponseMessage)message).Error); 467Assert.Null(client.HandshakeResponseMessage.Error); 649Assert.Equal("The server does not support version 9001 of the 'json' protocol.", client.HandshakeResponseMessage.Error);