23 references to Instance
Microsoft.AspNetCore.Components.Server (1)
src\SignalR\common\Protocols.MessagePack\src\Protocol\MessagePackHubProtocolWorker.cs (1)
60return PingMessage.Instance;
Microsoft.AspNetCore.Components.Server.Tests (2)
src\SignalR\common\SignalR.Common\test\Internal\Protocol\MessagePackHubProtocolTestBase.cs (2)
179message: PingMessage.Instance, 433new MessageSizeTestData("PingMessage", PingMessage.Instance, 3),
Microsoft.AspNetCore.SignalR.Client.Core (2)
HubConnection.cs (2)
540await SendHubMessage(startingConnectionState, PingMessage.Instance, cancellationToken).ConfigureAwait(false); 2363await _hubConnection.SendHubMessage(this, PingMessage.Instance).ConfigureAwait(false);
Microsoft.AspNetCore.SignalR.Common.Tests (4)
Internal\Protocol\JsonHubProtocolTestsBase.cs (2)
83new JsonProtocolTestData("PingMessage", PingMessage.Instance, true, true, "{\"type\":6}"), 381new MessageSizeTestData("PingMessage", PingMessage.Instance, 11),
Internal\Protocol\MessagePackHubProtocolTestBase.cs (2)
179message: PingMessage.Instance, 433new MessageSizeTestData("PingMessage", PingMessage.Instance, 3),
Microsoft.AspNetCore.SignalR.Core (1)
HubConnectionContext.cs (1)
576_cachedPingMessage = Protocol.GetMessageBytes(PingMessage.Instance);
Microsoft.AspNetCore.SignalR.Protocols.Json (1)
Protocol\JsonHubProtocol.cs (1)
459return PingMessage.Instance;
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (1)
Protocol\MessagePackHubProtocolWorker.cs (1)
60return PingMessage.Instance;
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (1)
Protocol\NewtonsoftJsonHubProtocol.cs (1)
456return PingMessage.Instance;
Microsoft.AspNetCore.SignalR.Tests (10)
HubConnectionHandlerTests.cs (7)
2677await client.SendHubMessageAsync(PingMessage.Instance).DefaultTimeout(); 2849await client.SendHubMessageAsync(PingMessage.Instance); 2882await client.SendHubMessageAsync(PingMessage.Instance); 2912await client.SendHubMessageAsync(PingMessage.Instance); 2918await client.SendHubMessageAsync(PingMessage.Instance); 3028await client.SendHubMessageAsync(PingMessage.Instance); 3084await client.SendHubMessageAsync(PingMessage.Instance);
Internal\MessageBufferTests.cs (3)
28await messageBuffer.WriteAsync(PingMessage.Instance, default).DefaultTimeout(); 145Assert.True(messageBuffer.ShouldProcessMessage(PingMessage.Instance)); 168Assert.True(messageBuffer.ShouldProcessMessage(PingMessage.Instance));