9 instantiations of HandshakeResponseMessage
Microsoft.AspNetCore.SignalR.Common (2)
Protocol\HandshakeProtocol.cs (1)
160
responseMessage = new
HandshakeResponseMessage
(error);
Protocol\HandshakeResponseMessage.cs (1)
14
public static readonly HandshakeResponseMessage Empty = new
HandshakeResponseMessage
(error: null);
Microsoft.AspNetCore.SignalR.Core (7)
HubConnectionContext.cs (7)
558
await WriteHandshakeResponseAsync(new
HandshakeResponseMessage
("Handshake was canceled."));
585
await WriteHandshakeResponseAsync(new
HandshakeResponseMessage
($"The protocol '{handshakeRequestMessage.Protocol}' is not supported."));
592
await WriteHandshakeResponseAsync(new
HandshakeResponseMessage
(
606
await WriteHandshakeResponseAsync(new
HandshakeResponseMessage
($"Cannot use the '{Protocol.Name}' protocol on the current transport. The transport does not support '{Protocol.TransferFormat}' transfer format."));
650
await WriteHandshakeResponseAsync(new
HandshakeResponseMessage
("Handshake was canceled."));
673
await WriteHandshakeResponseAsync(new
HandshakeResponseMessage
("Handshake was canceled."));
680
await WriteHandshakeResponseAsync(new
HandshakeResponseMessage
(errorMessage));
10 references to HandshakeResponseMessage
Microsoft.AspNetCore.SignalR.Common (8)
Protocol\HandshakeProtocol.cs (6)
35
WriteResponseMessage(
HandshakeResponseMessage
.Empty, memoryBufferWriter);
80
/// Writes the serialized representation of a <see cref="
HandshakeResponseMessage
"/> to the specified writer.
84
public 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>
116
public static bool TryParseResponseMessage(ref ReadOnlySequence<byte> buffer, [NotNullWhen(true)] out
HandshakeResponseMessage
? responseMessage)
Protocol\HandshakeResponseMessage.cs (2)
14
public static readonly
HandshakeResponseMessage
Empty = new HandshakeResponseMessage(error: null);
22
/// Initializes a new instance of the <see cref="
HandshakeResponseMessage
"/> class.
Microsoft.AspNetCore.SignalR.Core (2)
HubConnectionContext.cs (2)
471
private async Task WriteHandshakeResponseAsync(
HandshakeResponseMessage
message)
643
await WriteHandshakeResponseAsync(
HandshakeResponseMessage
.Empty);