13 implementations of TryParseMessage
Microsoft.AspNetCore.Components.Server (1)
BlazorPack\BlazorPackHubProtocol.cs (1)
39public bool TryParseMessage(ref ReadOnlySequence<byte> input, IInvocationBinder binder, out HubMessage message)
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (2)
HubProtocolVersionTests.cs (1)
221public bool TryParseMessage(ref ReadOnlySequence<byte> input, IInvocationBinder binder, [NotNullWhen(true)] out HubMessage message)
VersionJsonHubProtocol.cs (1)
30public bool TryParseMessage(ref ReadOnlySequence<byte> input, IInvocationBinder binder, out HubMessage message)
Microsoft.AspNetCore.SignalR.Client.Tests (1)
HubConnectionTests.cs (1)
996public bool TryParseMessage(ref ReadOnlySequence<byte> input, IInvocationBinder binder, out HubMessage message)
Microsoft.AspNetCore.SignalR.Microbenchmarks (3)
DefaultHubDispatcherBenchmark.cs (1)
67public bool TryParseMessage(ref ReadOnlySequence<byte> input, IInvocationBinder binder, out HubMessage message)
RedisHubLifetimeManagerBenchmark.cs (1)
186public bool TryParseMessage(ref ReadOnlySequence<byte> input, IInvocationBinder binder, out HubMessage message)
RedisProtocolBenchmark.cs (1)
140public bool TryParseMessage(ref ReadOnlySequence<byte> input, IInvocationBinder binder, out HubMessage message)
Microsoft.AspNetCore.SignalR.Protocols.Json (1)
Protocol\JsonHubProtocol.cs (1)
89public bool TryParseMessage(ref ReadOnlySequence<byte> input, IInvocationBinder binder, [NotNullWhen(true)] out HubMessage? message)
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (1)
Protocol\MessagePackHubProtocol.cs (1)
60public bool TryParseMessage(ref ReadOnlySequence<byte> input, IInvocationBinder binder, [NotNullWhen(true)] out HubMessage? message)
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (1)
Protocol\NewtonsoftJsonHubProtocol.cs (1)
79public bool TryParseMessage(ref ReadOnlySequence<byte> input, IInvocationBinder binder, [NotNullWhen(true)] out HubMessage? message)
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (1)
DefaultHubMessageSerializerTests.cs (1)
155public bool TryParseMessage(ref ReadOnlySequence<byte> input, IInvocationBinder binder, out HubMessage message)
Microsoft.AspNetCore.SignalR.Tests (1)
AddSignalRTests.cs (1)
346public bool TryParseMessage(ref ReadOnlySequence<byte> input, IInvocationBinder binder, out HubMessage message)
Microsoft.AspNetCore.SignalR.Tests.Utils (1)
DummyHubProtocol.cs (1)
37public bool TryParseMessage(ref ReadOnlySequence<byte> input, IInvocationBinder binder, out HubMessage message)
50 references to TryParseMessage
Microsoft.AspNetCore.Components.Server.Tests (5)
src\SignalR\common\SignalR.Common\test\Internal\Protocol\MessagePackHubProtocolTestBase.cs (5)
230Assert.True(HubProtocol.TryParseMessage(ref data, new TestBinder(testData.Message), out var message)); 255Assert.True(HubProtocol.TryParseMessage(ref data, new TestBinder(expectedMessage), out var message)); 364var exception = Assert.Throws<InvalidDataException>(() => HubProtocol.TryParseMessage(ref data, binder, out _)); 397HubProtocol.TryParseMessage(ref data, binder, out var message); 408var result = HubProtocol.TryParseMessage(ref data, binder, out var message);
Microsoft.AspNetCore.SignalR.Client.Core (1)
HubConnection.cs (1)
1646while (_protocol.TryParseMessage(ref buffer, connectionState, out var message))
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (1)
HubProtocolVersionTests.cs (1)
223return _protocol.TryParseMessage(ref input, binder, out message);
Microsoft.AspNetCore.SignalR.Common (2)
Protocol\InvocationBindingFailureMessage.cs (1)
10/// message that is sent on the wire, it is returned by <see cref="IHubProtocol.TryParseMessage"/>
Protocol\StreamBindingFailureMessage.cs (1)
13/// message that is sent on the wire, it is returned by <see cref="IHubProtocol.TryParseMessage"/>
Microsoft.AspNetCore.SignalR.Common.Tests (33)
Internal\Protocol\JsonHubProtocolTests.cs (5)
54var ex = Assert.Throws<InvalidDataException>(() => JsonHubProtocol.TryParseMessage(ref data, binder, out var _)); 92protocol.TryParseMessage(ref data, binder, out var message); 105JsonHubProtocol.TryParseMessage(ref data, binder, out var message); 164Assert.True(JsonHubProtocol.TryParseMessage(ref data, binder, out var message)); 197Assert.True(JsonHubProtocol.TryParseMessage(ref data, binder, out var message));
Internal\Protocol\JsonHubProtocolTestsBase.cs (15)
147protocol.TryParseMessage(ref data, binder, out var message); 196var ex = Assert.Throws<InvalidDataException>(() => JsonHubProtocol.TryParseMessage(ref data, binder, out var _)); 207JsonHubProtocol.TryParseMessage(ref data, binder, out var message); 223protocol.TryParseMessage(ref data, binder, out var message); 236Assert.True(JsonHubProtocol.TryParseMessage(ref data, binder, out var message)); 256JsonHubProtocol.TryParseMessage(ref data, binder, out var message); 269var ex = Assert.Throws<InvalidDataException>(() => JsonHubProtocol.TryParseMessage(ref data, binder, out var message)); 280JsonHubProtocol.TryParseMessage(ref data, binder, out var message); 295JsonHubProtocol.TryParseMessage(ref data, binder, out var message); 307JsonHubProtocol.TryParseMessage(ref data, binder, out var message); 320JsonHubProtocol.TryParseMessage(ref data, binder, out var message); 442Assert.True(JsonHubProtocol.TryParseMessage(ref data, binder, out var message)); 455Assert.True(JsonHubProtocol.TryParseMessage(ref data, binder, out message)); 474Assert.True(JsonHubProtocol.TryParseMessage(ref data, binder, out var hubMessage)); 490Assert.True(JsonHubProtocol.TryParseMessage(ref data, binder, out var hubMessage));
Internal\Protocol\MessagePackHubProtocolTestBase.cs (5)
230Assert.True(HubProtocol.TryParseMessage(ref data, new TestBinder(testData.Message), out var message)); 255Assert.True(HubProtocol.TryParseMessage(ref data, new TestBinder(expectedMessage), out var message)); 364var exception = Assert.Throws<InvalidDataException>(() => HubProtocol.TryParseMessage(ref data, binder, out _)); 397HubProtocol.TryParseMessage(ref data, binder, out var message); 408var result = HubProtocol.TryParseMessage(ref data, binder, out var message);
Internal\Protocol\MessagePackHubProtocolTests.cs (6)
38HubProtocol.TryParseMessage(ref bytes, new TestBinder(typeof(DateTime)), out var hubMessage); 67HubProtocol.TryParseMessage(ref bytes, new TestBinder(typeof(DateTimeOffset)), out var hubMessage); 222Assert.True(HubProtocol.TryParseMessage(ref data, binder, out var message)); 235Assert.True(HubProtocol.TryParseMessage(ref data, binder, out message)); 252Assert.True(HubProtocol.TryParseMessage(ref data, binder, out var hubMessage)); 265Assert.True(HubProtocol.TryParseMessage(ref data, binder, out var hubMessage));
Internal\Protocol\NewtonsoftJsonHubProtocolTests.cs (2)
52var ex = Assert.Throws<InvalidDataException>(() => JsonHubProtocol.TryParseMessage(ref data, binder, out var _)); 91protocol.TryParseMessage(ref data, binder, out var message);
Microsoft.AspNetCore.SignalR.Core (2)
HubConnectionHandler.cs (2)
289while (protocol.TryParseMessage(ref buffer, binder, out var message)) 318if (protocol.TryParseMessage(ref segment, binder, out var message))
Microsoft.AspNetCore.SignalR.Microbenchmarks (2)
HubProtocolBenchmark.cs (1)
63if (!_hubProtocol.TryParseMessage(ref data, _binder, out _))
RedisHubLifetimeManagerBenchmark.cs (1)
188return _innerProtocol.TryParseMessage(ref input, binder, out message);
Microsoft.AspNetCore.SignalR.Specification.Tests (1)
src\SignalR\common\testassets\Tests.Utils\TestClient.cs (1)
288if (_protocol.TryParseMessage(ref buffer, _invocationBinder, out var message))
Microsoft.AspNetCore.SignalR.StackExchangeRedis (2)
RedisHubLifetimeManager.cs (2)
671var parseSuccess = protocol.TryParseMessage(ref ros, _clientResultsManager, out hubMessage); 686if (!protocol.TryParseMessage(ref ros, FakeInvocationBinder.Instance, out hubMessage))
Microsoft.AspNetCore.SignalR.Tests.Utils (1)
TestClient.cs (1)
288if (_protocol.TryParseMessage(ref buffer, _invocationBinder, out var message))