12 references to CloseMessage
Microsoft.AspNetCore.Components.Server.Tests (2)
src\SignalR\common\SignalR.Common\test\Internal\Protocol\MessagePackHubProtocolTestBase.cs (2)
189
message: new
CloseMessage
("Error!"),
419
new MessageSizeTestData("CloseMessage_WithError", new
CloseMessage
("error"), 10),
Microsoft.AspNetCore.SignalR.Common.Tests (6)
Internal\Protocol\JsonHubProtocolTestsBase.cs (4)
86
new JsonProtocolTestData("CloseMessage_HasError", new
CloseMessage
("Error!"), false, true, "{\"type\":7,\"error\":\"Error!\"}"),
87
new JsonProtocolTestData("CloseMessage_HasErrorEmptyString", new
CloseMessage
(""), false, true, "{\"type\":7,\"error\":\"\"}"),
88
new JsonProtocolTestData("CloseMessage_HasErrorWithCamelCase", new
CloseMessage
("Error!"), true, true, "{\"type\":7,\"error\":\"Error!\"}"),
367
new MessageSizeTestData("CloseMessage_WithError", new
CloseMessage
("error"), 27),
Internal\Protocol\MessagePackHubProtocolTestBase.cs (2)
189
message: new
CloseMessage
("Error!"),
419
new MessageSizeTestData("CloseMessage_WithError", new
CloseMessage
("error"), 10),
Microsoft.AspNetCore.SignalR.Tests (4)
HubConnectionHandlerTests.cs (4)
5123
await client.SendHubMessageAsync(new
CloseMessage
(error: null));
5148
await client.SendHubMessageAsync(new
CloseMessage
(error: errorMessage));
5263
await client.SendHubMessageAsync(new
CloseMessage
(error: null));
5319
await client.SendHubMessageAsync(new
CloseMessage
(error: null));