13 implementations of GetMessageBytes
Microsoft.AspNetCore.Components.Server (1)
BlazorPack\BlazorPackHubProtocol.cs (1)
47public ReadOnlyMemory<byte> GetMessageBytes(HubMessage message)
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (2)
HubProtocolVersionTests.cs (1)
214public ReadOnlyMemory<byte> GetMessageBytes(HubMessage message) => _protocol.GetMessageBytes(message);
VersionJsonHubProtocol.cs (1)
76public ReadOnlyMemory<byte> GetMessageBytes(HubMessage message)
Microsoft.AspNetCore.SignalR.Client.Tests (1)
HubConnectionTests.cs (1)
1025public ReadOnlyMemory<byte> GetMessageBytes(HubMessage message)
Microsoft.AspNetCore.SignalR.Microbenchmarks (3)
DefaultHubDispatcherBenchmark.cs (1)
77public ReadOnlyMemory<byte> GetMessageBytes(HubMessage message)
RedisHubLifetimeManagerBenchmark.cs (1)
196public ReadOnlyMemory<byte> GetMessageBytes(HubMessage message)
RedisProtocolBenchmark.cs (1)
150public ReadOnlyMemory<byte> GetMessageBytes(HubMessage message)
Microsoft.AspNetCore.SignalR.Protocols.Json (1)
Protocol\JsonHubProtocol.cs (1)
110public ReadOnlyMemory<byte> GetMessageBytes(HubMessage message)
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (1)
Protocol\MessagePackHubProtocol.cs (1)
68public ReadOnlyMemory<byte> GetMessageBytes(HubMessage message)
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (1)
Protocol\NewtonsoftJsonHubProtocol.cs (1)
109public ReadOnlyMemory<byte> GetMessageBytes(HubMessage message)
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (1)
DefaultHubMessageSerializerTests.cs (1)
145public ReadOnlyMemory<byte> GetMessageBytes(HubMessage message)
Microsoft.AspNetCore.SignalR.Tests (1)
AddSignalRTests.cs (1)
336public ReadOnlyMemory<byte> GetMessageBytes(HubMessage message)
Microsoft.AspNetCore.SignalR.Tests.Utils (1)
DummyHubProtocol.cs (1)
47public ReadOnlyMemory<byte> GetMessageBytes(HubMessage message)
13 references to GetMessageBytes
Microsoft.AspNetCore.SignalR.Client.Core (2)
Internal\SerializedHubMessage.cs (1)
68serialized = protocol.GetMessageBytes(Message);
src\SignalR\common\Shared\MessageBuffer.cs (1)
129return WriteAsyncCore(hubMessage, _protocol.GetMessageBytes(hubMessage), cancellationToken);
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (1)
HubProtocolVersionTests.cs (1)
214public ReadOnlyMemory<byte> GetMessageBytes(HubMessage message) => _protocol.GetMessageBytes(message);
Microsoft.AspNetCore.SignalR.Core (3)
HubConnectionContext.cs (1)
576_cachedPingMessage = Protocol.GetMessageBytes(PingMessage.Instance);
SerializedHubMessage.cs (1)
63serialized = protocol.GetMessageBytes(Message);
src\SignalR\common\Shared\MessageBuffer.cs (1)
129return WriteAsyncCore(hubMessage, _protocol.GetMessageBytes(hubMessage), cancellationToken);
Microsoft.AspNetCore.SignalR.Microbenchmarks (4)
HubConnectionReceiveBenchmark.cs (1)
75_invocationMessageBytes = hubProtocol.GetMessageBytes(new InvocationMessage(MethodName, arguments));
HubProtocolBenchmark.cs (2)
55_binaryInput = _hubProtocol.GetMessageBytes(_hubMessage); 72var bytes = _hubProtocol.GetMessageBytes(_hubMessage);
ServerSentEventsBenchmark.cs (1)
58_rawData = new ReadOnlySequence<byte>(protocol.GetMessageBytes(hubMessage));
Microsoft.AspNetCore.SignalR.Specification.Tests (1)
src\SignalR\common\testassets\Tests.Utils\TestClient.cs (1)
234var payload = _protocol.GetMessageBytes(message);
Microsoft.AspNetCore.SignalR.StackExchangeRedis (1)
Internal\DefaultHubMessageSerializer.cs (1)
32list.Add(new SerializedMessage(protocol.Name, protocol.GetMessageBytes(message)));
Microsoft.AspNetCore.SignalR.Tests.Utils (1)
TestClient.cs (1)
234var payload = _protocol.GetMessageBytes(message);