2 writes to Protocol
Microsoft.AspNetCore.SignalR.Core (1)
HubConnectionContext.cs (1)
673Protocol = protocolResolver.GetProtocol(handshakeRequestMessage.Protocol, supportedProtocols)!;
Microsoft.AspNetCore.SignalR.Specification.Tests (1)
parent\parent\parent\common\testassets\Tests.Utils\HubConnectionContextUtils.cs (1)
26Protocol = protocol ?? new JsonHubProtocol(),
15 references to Protocol
Microsoft.AspNetCore.SignalR.Core (13)
HubConnectionContext.cs (12)
391Protocol.WriteMessage(message, _connectionContext.Transport.Output); 429var buffer = message.GetSerializedMessage(Protocol); 572_connectionContext.Transport.Output.Write(HandshakeProtocol.GetSuccessfulHandshake(Protocol)); 674if (Protocol == null) 682if (!Protocol.IsVersionSupported(handshakeRequestMessage.Version)) 696if ((transferFormatFeature.SupportedFormats & Protocol.TransferFormat) == 0) 699await WriteHandshakeResponseAsync(new HandshakeResponseMessage($"Cannot use the '{Protocol.Name}' protocol on the current transport. The transport does not support '{Protocol.TransferFormat}' transfer format.")); 703transferFormatFeature.ActiveFormat = Protocol.TransferFormat; 706_cachedPingMessage = Protocol.GetMessageBytes(PingMessage.Instance); 729_messageBuffer = new MessageBuffer(_connectionContext, Protocol, _statefulReconnectBufferSize, _logger, _timeProvider); 735Log.HandshakeComplete(_logger, Protocol.Name);
HubConnectionHandler.cs (1)
486var protocol = connection.Protocol;
Microsoft.AspNetCore.SignalR.StackExchangeRedis (2)
RedisHubLifetimeManager.cs (2)
545var protocolName = connection.Protocol.Name; 554connection.Protocol.WriteMessage(completionMessage, memoryBufferWriter);