1 write to Target
Microsoft.AspNetCore.SignalR.Common (1)
94 references to Target
Microsoft.AspNetCore.Components.Server (2)
Microsoft.AspNetCore.Components.Server.Tests (4)
Microsoft.AspNetCore.SignalR.Client.Core (9)
HubConnection.cs (9)
1305Log.ReceivedInvocation(_logger, invocation.InvocationId, invocation.Target, invocation.Arguments);
1368if (!_handlers.TryGetValue(invocation.Target, out var invocationHandlerList))
1372Log.MissingResultHandler(_logger, invocation.Target);
1379Log.ErrorSendingInvocationResult(_logger, invocation.InvocationId!, invocation.Target, ex);
1384Log.MissingHandler(_logger, invocation.Target);
1411Log.ErrorInvokingClientSideMethod(_logger, invocation.Target, ex);
1433Log.MissingResultHandler(_logger, invocation.Target);
1439Log.ErrorSendingInvocationResult(_logger, invocation.InvocationId!, invocation.Target, ex);
1444Log.ResultNotExpected(_logger, invocation.Target);
Microsoft.AspNetCore.SignalR.Common (4)
Microsoft.AspNetCore.SignalR.Common.Tests (4)
Microsoft.AspNetCore.SignalR.Core (19)
Internal\DefaultHubDispatcher.cs (19)
285if (!_methods.TryGetValue(hubMethodInvocationMessage.Target, out var descriptor))
287Log.UnknownHubMethod(_logger, hubMethodInvocationMessage.Target);
293hubMethodInvocationMessage.InvocationId, $"Unknown hub method '{hubMethodInvocationMessage.Target}'")).AsTask();
335Log.HubMethodNotAuthorized(_logger, hubMethodInvocationMessage.Target);
337$"Failed to invoke '{hubMethodInvocationMessage.Target}' because user is unauthorized");
353Log.InvalidHubParameters(_logger, hubMethodInvocationMessage.Target, ex);
355ErrorMessageHelper.BuildErrorMessage($"An unexpected error occurred invoking '{hubMethodInvocationMessage.Target}' on the server.", ex, _enableDetailedErrors));
407var activity = StartActivity(SignalRServerActivitySource.InvocationIn, ActivityKind.Server, connection.OriginalActivity, scope.ServiceProvider, hubMethodInvocationMessage.Target, hubMethodInvocationMessage.Headers, logger);
419Log.FailedInvokingHubMethod(logger, hubMethodInvocationMessage.Target, ex);
421ErrorMessageHelper.BuildErrorMessage($"An unexpected error occurred invoking '{hubMethodInvocationMessage.Target}' on the server.", ex, enableDetailedErrors));
466Log.FailedInvokingHubMethod(_logger, hubMethodInvocationMessage.Target, ex);
468ErrorMessageHelper.BuildErrorMessage($"An unexpected error occurred invoking '{hubMethodInvocationMessage.Target}' on the server.", ex.InnerException ?? ex, _enableDetailedErrors));
472Log.FailedInvokingHubMethod(_logger, hubMethodInvocationMessage.Target, ex);
474ErrorMessageHelper.BuildErrorMessage($"An unexpected error occurred invoking '{hubMethodInvocationMessage.Target}' on the server.", ex, _enableDetailedErrors));
525var activity = StartActivity(SignalRServerActivitySource.InvocationIn, ActivityKind.Server, connection.OriginalActivity, scope.ServiceProvider, hubMethodInvocationMessage.Target, hubMethodInvocationMessage.Headers, _logger);
545Log.FailedInvokingHubMethod(_logger, hubMethodInvocationMessage.Target, ex);
546error = ErrorMessageHelper.BuildErrorMessage($"An unexpected error occurred invoking '{hubMethodInvocationMessage.Target}' on the server.", ex, _enableDetailedErrors);
700$"The client attempted to invoke the streaming '{hubMethodInvocationMessage.Target}' method with a non-streaming invocation."));
710$"The client attempted to invoke the non-streaming '{hubMethodInvocationMessage.Target}' method with a streaming invocation."));
Microsoft.AspNetCore.SignalR.Protocols.Json (2)
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (2)
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (2)
Microsoft.AspNetCore.SignalR.Specification.Tests (7)
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (5)
Microsoft.AspNetCore.SignalR.Tests (34)
HubConnectionHandlerTests.cs (25)
1390Assert.Equal("Broadcast", invocation.Target);
1428Assert.Equal("Array", invocation.Target);
1463Assert.Equal("Send", invocation.Target);
1472Assert.Equal("Broadcast", invocation.Target);
1504Assert.Equal("Send", invocation.Target);
1510Assert.Equal("Broadcast", invocation.Target);
1575Assert.Equal("Send", invocation.Target);
1580Assert.Equal("Send", invocation.Target);
1618Assert.Equal("Send", invocation.Target);
1623Assert.Equal("Send", invocation.Target);
1663Assert.Equal("Send", invocation.Target);
1668Assert.Equal("Send", invocation.Target);
1717Assert.Equal("Send", invocation.Target);
1764Assert.Equal("Send", invocation.Target);
1815Assert.Equal("Send", invocation.Target);
1858Assert.Equal("Send", invocation.Target);
1864Assert.Equal("Send", invocation.Target);
1921Assert.Equal("Send", invocation.Target);
1955Assert.Equal("Send", invocation.Target);
1988Assert.Equal("Send", invocation.Target);
2565Assert.Equal("Send", message.Target);
4526Assert.Equal("Echo", message.Target);
4555Assert.Equal("Send", invocation.Target);
4645Assert.Equal("Send", invocation.Target);
5106Assert.Equal("Test", message.Target);