10 instantiations of HandshakeResponseMessage
Microsoft.AspNetCore.SignalR.Client.Tests (1)
HubConnectionTests.Reconnect.cs (1)
919HandshakeProtocol.WriteResponseMessage(new HandshakeResponseMessage("Error!"), output);
Microsoft.AspNetCore.SignalR.Common (2)
Protocol\HandshakeProtocol.cs (1)
160responseMessage = new HandshakeResponseMessage(error);
Protocol\HandshakeResponseMessage.cs (1)
14public static readonly HandshakeResponseMessage Empty = new HandshakeResponseMessage(error: null);
Microsoft.AspNetCore.SignalR.Core (7)
HubConnectionContext.cs (7)
521await WriteHandshakeResponseAsync(new HandshakeResponseMessage("Handshake was canceled.")); 548await WriteHandshakeResponseAsync(new HandshakeResponseMessage($"The protocol '{handshakeRequestMessage.Protocol}' is not supported.")); 555await WriteHandshakeResponseAsync(new HandshakeResponseMessage( 569await WriteHandshakeResponseAsync(new HandshakeResponseMessage($"Cannot use the '{Protocol.Name}' protocol on the current transport. The transport does not support '{Protocol.TransferFormat}' transfer format.")); 613await WriteHandshakeResponseAsync(new HandshakeResponseMessage("Handshake was canceled.")); 636await WriteHandshakeResponseAsync(new HandshakeResponseMessage("Handshake was canceled.")); 643await WriteHandshakeResponseAsync(new HandshakeResponseMessage(errorMessage));
36 references to HandshakeResponseMessage
Microsoft.AspNetCore.SignalR.Client.Core (1)
HubConnection.cs (1)
1521if (HandshakeProtocol.TryParseResponseMessage(ref buffer, out var message))
Microsoft.AspNetCore.SignalR.Client.Tests (1)
TestConnection.cs (1)
91HandshakeProtocol.WriteResponseMessage(HandshakeResponseMessage.Empty, output);
Microsoft.AspNetCore.SignalR.Common (8)
Protocol\HandshakeProtocol.cs (6)
35WriteResponseMessage(HandshakeResponseMessage.Empty, memoryBufferWriter); 80/// Writes the serialized representation of a <see cref="HandshakeResponseMessage"/> to the specified writer. 84public static void WriteResponseMessage(HandshakeResponseMessage responseMessage, IBufferWriter<byte> output) 111/// Creates a new <see cref="HandshakeResponseMessage"/> from the specified serialized representation. 115/// <returns>A value that is <c>true</c> if the <see cref="HandshakeResponseMessage"/> was successfully parsed; otherwise, <c>false</c>.</returns> 116public static bool TryParseResponseMessage(ref ReadOnlySequence<byte> buffer, [NotNullWhen(true)] out HandshakeResponseMessage? responseMessage)
Protocol\HandshakeResponseMessage.cs (2)
14public static readonly HandshakeResponseMessage Empty = new HandshakeResponseMessage(error: null); 22/// Initializes a new instance of the <see cref="HandshakeResponseMessage"/> class.
Microsoft.AspNetCore.SignalR.Common.Tests (2)
Internal\Protocol\HandshakeProtocolTests.cs (2)
54Assert.True(HandshakeProtocol.TryParseResponseMessage(ref message, out var response)); 63Assert.True(HandshakeProtocol.TryParseResponseMessage(ref message, out var response));
Microsoft.AspNetCore.SignalR.Core (2)
HubConnectionContext.cs (2)
434private async Task WriteHandshakeResponseAsync(HandshakeResponseMessage message) 606await WriteHandshakeResponseAsync(HandshakeResponseMessage.Empty);
Microsoft.AspNetCore.SignalR.Microbenchmarks (11)
HandshakeProtocolBenchmark.cs (8)
50HandshakeProtocol.WriteResponseMessage(HandshakeResponseMessage.Empty, writer); 65HandshakeProtocol.WriteResponseMessage(HandshakeResponseMessage.Empty, memoryBufferWriter); 142if (!HandshakeProtocol.TryParseResponseMessage(ref message, out var deserializedMessage)) 152if (!HandshakeProtocol.TryParseResponseMessage(ref message, out var deserializedMessage)) 162if (!HandshakeProtocol.TryParseResponseMessage(ref message, out var deserializedMessage)) 172if (!HandshakeProtocol.TryParseResponseMessage(ref message, out var deserializedMessage)) 182if (!HandshakeProtocol.TryParseResponseMessage(ref message, out var deserializedMessage)) 192if (!HandshakeProtocol.TryParseResponseMessage(ref message, out var deserializedMessage))
HubConnectionReceiveBenchmark.cs (1)
46HandshakeProtocol.WriteResponseMessage(HandshakeResponseMessage.Empty, writer);
HubConnectionSendBenchmark.cs (1)
31HandshakeProtocol.WriteResponseMessage(HandshakeResponseMessage.Empty, writer);
HubConnectionStartBenchmark.cs (1)
30HandshakeProtocol.WriteResponseMessage(HandshakeResponseMessage.Empty, writer);
Microsoft.AspNetCore.SignalR.Specification.Tests (3)
src\SignalR\common\testassets\Tests.Utils\TestClient.cs (3)
35public HandshakeResponseMessage HandshakeResponseMessage { get; private set; } 85HandshakeResponseMessage = (HandshakeResponseMessage)await ReadAsync(true).DefaultTimeout(); 296if (HandshakeProtocol.TryParseResponseMessage(ref buffer, out var responseMessage))
Microsoft.AspNetCore.SignalR.Tests (5)
HubConnectionHandlerTests.cs (5)
323Assert.Equal("Handshake was canceled.", ((HandshakeResponseMessage)message).Error); 366var response = (await task) as HandshakeResponseMessage; 440var response = await task as HandshakeResponseMessage;
Microsoft.AspNetCore.SignalR.Tests.Utils (3)
TestClient.cs (3)
35public HandshakeResponseMessage HandshakeResponseMessage { get; private set; } 85HandshakeResponseMessage = (HandshakeResponseMessage)await ReadAsync(true).DefaultTimeout(); 296if (HandshakeProtocol.TryParseResponseMessage(ref buffer, out var responseMessage))