1 write to Arguments
Microsoft.AspNetCore.SignalR.Common (1)
Protocol\HubMethodInvocationMessage.cs (1)
55Arguments = arguments;
140 references to Arguments
Microsoft.AspNetCore.Components.Server (6)
src\SignalR\common\Protocols.MessagePack\src\Protocol\MessagePackHubProtocolWorker.cs (6)
441if (message.Arguments is null) 447writer.WriteArrayHeader(message.Arguments.Length); 448foreach (var arg in message.Arguments) 466if (message.Arguments is null) 472writer.WriteArrayHeader(message.Arguments.Length); 473foreach (var arg in message.Arguments)
Microsoft.AspNetCore.Components.Server.Tests (6)
src\SignalR\common\SignalR.Common\test\Internal\Protocol\TestBinder.cs (2)
21_paramTypes = i.Arguments?.Select(a => a?.GetType() ?? typeof(object))?.ToArray(); 24_paramTypes = i.Arguments?.Select(a => a?.GetType() ?? typeof(object))?.ToArray();
src\SignalR\common\SignalR.Common\test\Internal\Protocol\TestHubMessageEqualityComparer.cs (4)
72&& ArgumentListsEqual(x.Arguments, y.Arguments) 81&& ArgumentListsEqual(x.Arguments, y.Arguments)
Microsoft.AspNetCore.SignalR.Client.Core (2)
HubConnection.cs (2)
1305Log.ReceivedInvocation(_logger, invocation.InvocationId, invocation.Target, invocation.Arguments); 1398var task = handler.InvokeAsync(invocation.Arguments);
Microsoft.AspNetCore.SignalR.Common (6)
Protocol\HubMethodInvocationMessage.cs (6)
104args = Arguments == null ? string.Empty : string.Join(", ", Arguments.Select(a => a?.ToString())); 120return $"InvocationMessage {{ {nameof(InvocationId)}: \"{InvocationId}\", {nameof(Target)}: \"{Target}\", {nameof(Arguments)}: [ {args} ], {nameof(StreamIds)}: [ {streamIds} ] }}"; 159args = Arguments == null ? string.Empty : string.Join(", ", Arguments.Select(a => a?.ToString())); 175return $"StreamInvocation {{ {nameof(InvocationId)}: \"{InvocationId}\", {nameof(Target)}: \"{Target}\", {nameof(Arguments)}: [ {args} ], {nameof(StreamIds)}: [ {streamIds} ] }}";
Microsoft.AspNetCore.SignalR.Common.Tests (10)
Internal\Protocol\JsonHubProtocolTests.cs (2)
134Assert.Equal(1, invocationMessage.Arguments?.Length); 135PersonEqual(todo, invocationMessage.Arguments[0]);
Internal\Protocol\JsonHubProtocolTestsBase.cs (2)
283Assert.Single(invocationMessage.Arguments); 284var dt = Assert.IsType<DateTime>(invocationMessage.Arguments[0]);
Internal\Protocol\TestBinder.cs (2)
21_paramTypes = i.Arguments?.Select(a => a?.GetType() ?? typeof(object))?.ToArray(); 24_paramTypes = i.Arguments?.Select(a => a?.GetType() ?? typeof(object))?.ToArray();
Internal\Protocol\TestHubMessageEqualityComparer.cs (4)
72&& ArgumentListsEqual(x.Arguments, y.Arguments) 81&& ArgumentListsEqual(x.Arguments, y.Arguments)
Microsoft.AspNetCore.SignalR.Core (6)
Internal\DefaultHubDispatcher.cs (6)
333if (!await IsHubMethodAuthorized(scope.ServiceProvider, connection, descriptor, hubMethodInvocationMessage.Arguments, hub)) 362var arguments = hubMethodInvocationMessage.Arguments; 729if (hubMethodInvocationMessage.Arguments?.Length > hubInvocationArgumentPointer && 730(hubMethodInvocationMessage.Arguments[hubInvocationArgumentPointer] == null || 731descriptor.OriginalParameterTypes[parameterPointer].IsAssignableFrom(hubMethodInvocationMessage.Arguments[hubInvocationArgumentPointer]?.GetType()))) 734arguments[parameterPointer] = hubMethodInvocationMessage.Arguments[hubInvocationArgumentPointer];
Microsoft.AspNetCore.SignalR.Microbenchmarks (2)
TestBinder.cs (2)
18_paramTypes = i.Arguments?.Select(a => a?.GetType() ?? typeof(object))?.ToArray(); 21_paramTypes = i.Arguments?.Select(a => a?.GetType() ?? typeof(object))?.ToArray();
Microsoft.AspNetCore.SignalR.Protocols.Json (2)
Protocol\JsonHubProtocol.cs (2)
645WriteArguments(message.Arguments, writer); 655WriteArguments(message.Arguments, writer);
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (6)
Protocol\MessagePackHubProtocolWorker.cs (6)
441if (message.Arguments is null) 447writer.WriteArrayHeader(message.Arguments.Length); 448foreach (var arg in message.Arguments) 466if (message.Arguments is null) 472writer.WriteArrayHeader(message.Arguments.Length); 473foreach (var arg in message.Arguments)
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (2)
Protocol\NewtonsoftJsonHubProtocol.cs (2)
635WriteArguments(message.Arguments, writer); 646WriteArguments(message.Arguments, writer);
Microsoft.AspNetCore.SignalR.Specification.Tests (20)
HubLifetimeManagerTestBase.cs (15)
50Assert.Single(message.Arguments); 51Assert.Equal("World", (string)message.Arguments[0]); 55Assert.Single(message.Arguments); 56Assert.Equal("World", (string)message.Arguments[0]); 83Assert.Single(message.Arguments); 84Assert.Equal("World", (string)message.Arguments[0]); 113Assert.Single(message.Arguments); 114Assert.Equal("World", (string)message.Arguments[0]); 144Assert.Single(message.Arguments); 145Assert.Equal("World", (string)message.Arguments[0]); 169Assert.Single(message.Arguments); 170Assert.Equal("World", (string)message.Arguments[0]); 192Assert.Equal("test", invocation.Arguments[0]); 219Assert.Equal("test", invocation.Arguments[0]); 249Assert.Equal("test", invocation.Arguments[0]);
ScaleoutHubLifetimeManagerTests.cs (5)
34Assert.Single(message.Arguments); 35Assert.Equal("World", (string)message.Arguments[0]); 488Assert.Equal("test", invocation.Arguments[0]); 519Assert.Equal("test", invocation.Arguments[0]); 651Assert.Equal("test", invocation.Arguments[0]);
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (5)
RedisHubLifetimeManagerTests.cs (1)
75message.Arguments,
RedisProtocolTests.cs (4)
167Assert.Same(_testMessage.Arguments, invocation.Arguments); 182var encoded = protocol.WriteInvocation(_testMessage.Target, _testMessage.Arguments, excludedConnectionIds: expected.ExcludedConnectionIds); 198var encoded = protocol.WriteInvocation(_testMessage.Target, _testMessage.Arguments, excludedConnectionIds: expected.ExcludedConnectionIds);
Microsoft.AspNetCore.SignalR.Tests (67)
DefaultHubLifetimeManagerTests.cs (6)
41Assert.Single(message.Arguments); 42Assert.Equal("World", (string)message.Arguments[0]); 217Assert.Single(message.Arguments); 218Assert.Equal("World", (string)message.Arguments[0]); 247Assert.Single(message.Arguments); 248Assert.Equal("World", (string)message.Arguments[0]);
HubConnectionHandlerTests.ClientResult.cs (16)
30var res = 4 + ((long)invocationMessage.Arguments[0]); 151Assert.Single(invocation.Arguments); 152Assert.Equal(1L, invocation.Arguments[0]); 185Assert.Single(invocation.Arguments); 186Assert.Equal(1L, invocation.Arguments[0]); 219var res = 4 + (int)invocationMessage.Arguments[0]; 260var res = 4 + ((long)invocationMessage.Arguments[0]); 266res = 5 + ((long)invocationMessage2.Arguments[0]); 272res = 6 + ((long)invocationMessage3.Arguments[0]); 309var res = 4 + ((long)invocationMessage.Arguments[0]); 378Assert.Single(invocation.Arguments); 379Assert.Equal(1, invocation.Arguments[0]); 423Assert.Single(invocation.Arguments); 424Assert.Equal(1L, invocation.Arguments[0]); 467var res = 4 + ((long)invocationMessage.Arguments[0]); 502var res = 4 + ((int)invocationMessage.Arguments[0]);
HubConnectionHandlerTests.cs (43)
1391Assert.Single(invocation.Arguments); 1392Assert.Equal("test", invocation.Arguments[0]); 1429Assert.Single(invocation.Arguments); 1430var values = ((JArray)invocation.Arguments[0]).Select(t => t.Value<int>()).ToArray(); 1464Assert.Equal("To others", invocation.Arguments[0]); 1473Assert.Equal("To everyone", invocation.Arguments[0]); 1505Assert.Equal("To caller", invocation.Arguments[0]); 1511Assert.Equal("To everyone", invocation.Arguments[0]); 1576Assert.Equal("To second", invocation.Arguments[0]); 1581Assert.Equal("To third", invocation.Arguments[0]); 1619Assert.Equal("Second and Third", invocation.Arguments[0]); 1624Assert.Equal("Second and Third", invocation.Arguments[0]); 1664Assert.Equal("Second and Third", invocation.Arguments[0]); 1669Assert.Equal("Second and Third", invocation.Arguments[0]); 1718Assert.Single(invocation.Arguments); 1719Assert.Equal("test", invocation.Arguments[0]); 1765Assert.Single(invocation.Arguments); 1766Assert.Equal("test", invocation.Arguments[0]); 1816Assert.Single(invocation.Arguments); 1817Assert.Equal("test", invocation.Arguments[0]); 1859Assert.Single(invocation.Arguments); 1860Assert.Equal("test", invocation.Arguments[0]); 1865Assert.Single(invocation.Arguments); 1866Assert.Equal("test", invocation.Arguments[0]); 1922Assert.Single(invocation.Arguments); 1923Assert.Equal("test", invocation.Arguments[0]); 1956Assert.Single(invocation.Arguments); 1957Assert.Equal("test", invocation.Arguments[0]); 1989Assert.Single(invocation.Arguments); 1990Assert.Equal("test", invocation.Arguments[0]); 2148Assert.Equal(sentMessage, completion1.Arguments[0]); 2152Assert.Equal(sentMessage, completion2.Arguments[0].ToString()); 2399var customItem = message.Arguments[0].ToString(); 2429var customItem = message.Arguments[0].ToString(); 2469var result = message.Arguments[0] as Dictionary<object, object>; 2566Assert.Collection(message.Arguments, arg => Assert.Equal("Hi!", arg)); 4527Assert.Equal("message", message.Arguments[0]); 4553Assert.Single(invocation.Arguments); 4554Assert.Equal("test", invocation.Arguments[0]); 4643Assert.Single(invocation.Arguments); 4644Assert.Equal("test", invocation.Arguments[0]); 5104Assert.Single(message.Arguments); 5105Assert.Equal(1L, message.Arguments[0]);
HubConnectionHandlerTestUtils\Utils.cs (2)
49Assert.Equal(expectedInvocation.Arguments, actualInvocation.Arguments);