9 references to GetSerializedMessage
Microsoft.AspNetCore.SignalR.Core (3)
HubConnectionContext.cs (1)
308var buffer = message.GetSerializedMessage(Protocol);
SerializedHubMessage.cs (1)
40/// <param name="message">The hub message for the cache. This will be serialized with an <see cref="IHubProtocol"/> in <see cref="GetSerializedMessage"/> to get the message's serialized representation.</param>
src\SignalR\common\Shared\MessageBuffer.cs (1)
124return WriteAsyncCore(hubMessage.Message!, hubMessage.GetSerializedMessage(_protocol), cancellationToken);
Microsoft.AspNetCore.SignalR.Tests (6)
SerializedHubMessageTests.cs (6)
22var serialized = message.GetSerializedMessage(protocol); 37_ = message.GetSerializedMessage(protocol); 40var serialized = message.GetSerializedMessage(protocol); 62_ = message.GetSerializedMessage(new DummyHubProtocol($"p{i}")); 69var firstSerialization = Task.Run(() => message.GetSerializedMessage(protocol)); 73var secondSerialization = Task.Run(() => message.GetSerializedMessage(protocol));