13 implementations of TryParseMessage
Microsoft.AspNetCore.Components.Server (1)
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (2)
Microsoft.AspNetCore.SignalR.Client.Tests (1)
Microsoft.AspNetCore.SignalR.Microbenchmarks (3)
Microsoft.AspNetCore.SignalR.Protocols.Json (1)
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (1)
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (1)
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (1)
Microsoft.AspNetCore.SignalR.Tests (1)
Microsoft.AspNetCore.SignalR.Tests.Utils (1)
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)
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (1)
Microsoft.AspNetCore.SignalR.Common (2)
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));
Microsoft.AspNetCore.SignalR.Core (2)
Microsoft.AspNetCore.SignalR.Microbenchmarks (2)
Microsoft.AspNetCore.SignalR.Specification.Tests (1)
Microsoft.AspNetCore.SignalR.StackExchangeRedis (2)
Microsoft.AspNetCore.SignalR.Tests.Utils (1)