1 write to Protocol
Microsoft.AspNetCore.SignalR.Core (1)
HubConnectionContext.cs (1)
580
Protocol
= protocolResolver.GetProtocol(handshakeRequestMessage.Protocol, supportedProtocols)!;
13 references to Protocol
Microsoft.AspNetCore.SignalR.Core (13)
HubConnectionContext.cs (12)
298
Protocol
.WriteMessage(message, _connectionContext.Transport.Output);
336
var buffer = message.GetSerializedMessage(
Protocol
);
479
_connectionContext.Transport.Output.Write(HandshakeProtocol.GetSuccessfulHandshake(
Protocol
));
581
if (
Protocol
== null)
589
if (!
Protocol
.IsVersionSupported(handshakeRequestMessage.Version))
603
if ((transferFormatFeature.SupportedFormats &
Protocol
.TransferFormat) == 0)
606
await WriteHandshakeResponseAsync(new HandshakeResponseMessage($"Cannot use the '{
Protocol
.Name}' protocol on the current transport. The transport does not support '{
Protocol
.TransferFormat}' transfer format."));
610
transferFormatFeature.ActiveFormat =
Protocol
.TransferFormat;
613
_cachedPingMessage =
Protocol
.GetMessageBytes(PingMessage.Instance);
635
_messageBuffer = new MessageBuffer(_connectionContext,
Protocol
, _statefulReconnectBufferSize, _logger, _timeProvider);
641
Log.HandshakeComplete(_logger,
Protocol
.Name);
HubConnectionHandler.cs (1)
266
var protocol = connection.
Protocol
;