9 references to GetSerializedMessage
Microsoft.AspNetCore.SignalR.Core (3)
HubConnectionContext.cs (1)
308
var 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)
124
return WriteAsyncCore(hubMessage.Message!, hubMessage.
GetSerializedMessage
(_protocol), cancellationToken);
Microsoft.AspNetCore.SignalR.Tests (6)
SerializedHubMessageTests.cs (6)
22
var serialized = message.
GetSerializedMessage
(protocol);
37
_ = message.
GetSerializedMessage
(protocol);
40
var serialized = message.
GetSerializedMessage
(protocol);
62
_ = message.
GetSerializedMessage
(new DummyHubProtocol($"p{i}"));
69
var firstSerialization = Task.Run(() => message.
GetSerializedMessage
(protocol));
73
var secondSerialization = Task.Run(() => message.
GetSerializedMessage
(protocol));