1 write to Target
Microsoft.AspNetCore.SignalR.Common (1)
Protocol\HubMethodInvocationMessage.cs (1)
54
Target
= target;
47 references to Target
Microsoft.AspNetCore.Components.Server (2)
src\aspnetcore\src\SignalR\common\Protocols.MessagePack\src\Protocol\MessagePackHubProtocolWorker.cs (2)
439
writer.Write(message.
Target
);
464
writer.Write(message.
Target
);
Microsoft.AspNetCore.SignalR.Client.Core (9)
HubConnection.cs (9)
1315
Log.ReceivedInvocation(_logger, invocation.InvocationId, invocation.
Target
, invocation.Arguments);
1378
if (!_handlers.TryGetValue(invocation.
Target
, out var invocationHandlerList))
1382
Log.MissingResultHandler(_logger, invocation.
Target
);
1389
Log.ErrorSendingInvocationResult(_logger, invocation.InvocationId!, invocation.
Target
, ex);
1394
Log.MissingHandler(_logger, invocation.
Target
);
1421
Log.ErrorInvokingClientSideMethod(_logger, invocation.
Target
, ex);
1443
Log.MissingResultHandler(_logger, invocation.
Target
);
1449
Log.ErrorSendingInvocationResult(_logger, invocation.InvocationId!, invocation.
Target
, ex);
1454
Log.ResultNotExpected(_logger, invocation.
Target
);
Microsoft.AspNetCore.SignalR.Common (4)
Protocol\HubMethodInvocationMessage.cs (4)
120
return $"InvocationMessage {{ {nameof(InvocationId)}: \"{InvocationId}\", {nameof(
Target
)}: \"{
Target
}\", {nameof(Arguments)}: [ {args} ], {nameof(StreamIds)}: [ {streamIds} ] }}";
175
return $"StreamInvocation {{ {nameof(InvocationId)}: \"{InvocationId}\", {nameof(
Target
)}: \"{
Target
}\", {nameof(Arguments)}: [ {args} ], {nameof(StreamIds)}: [ {streamIds} ] }}";
Microsoft.AspNetCore.SignalR.Core (19)
Internal\DefaultHubDispatcher.cs (19)
285
if (!_methods.TryGetValue(hubMethodInvocationMessage.
Target
, out var descriptor))
287
Log.UnknownHubMethod(_logger, hubMethodInvocationMessage.
Target
);
293
hubMethodInvocationMessage.InvocationId, $"Unknown hub method '{hubMethodInvocationMessage.
Target
}'")).AsTask();
335
Log.HubMethodNotAuthorized(_logger, hubMethodInvocationMessage.
Target
);
337
$"Failed to invoke '{hubMethodInvocationMessage.
Target
}' because user is unauthorized");
353
Log.InvalidHubParameters(_logger, hubMethodInvocationMessage.
Target
, ex);
355
ErrorMessageHelper.BuildErrorMessage($"An unexpected error occurred invoking '{hubMethodInvocationMessage.
Target
}' on the server.", ex, _enableDetailedErrors));
407
var activity = StartActivity(SignalRServerActivitySource.InvocationIn, ActivityKind.Server, connection.OriginalActivity, scope.ServiceProvider, hubMethodInvocationMessage.
Target
, hubMethodInvocationMessage.Headers, logger, connection);
419
Log.FailedInvokingHubMethod(logger, hubMethodInvocationMessage.
Target
, ex);
421
ErrorMessageHelper.BuildErrorMessage($"An unexpected error occurred invoking '{hubMethodInvocationMessage.
Target
}' on the server.", ex, enableDetailedErrors));
466
Log.FailedInvokingHubMethod(_logger, hubMethodInvocationMessage.
Target
, ex);
468
ErrorMessageHelper.BuildErrorMessage($"An unexpected error occurred invoking '{hubMethodInvocationMessage.
Target
}' on the server.", ex.InnerException ?? ex, _enableDetailedErrors));
472
Log.FailedInvokingHubMethod(_logger, hubMethodInvocationMessage.
Target
, ex);
474
ErrorMessageHelper.BuildErrorMessage($"An unexpected error occurred invoking '{hubMethodInvocationMessage.
Target
}' on the server.", ex, _enableDetailedErrors));
525
var activity = StartActivity(SignalRServerActivitySource.InvocationIn, ActivityKind.Server, connection.OriginalActivity, scope.ServiceProvider, hubMethodInvocationMessage.
Target
, hubMethodInvocationMessage.Headers, _logger, connection);
545
Log.FailedInvokingHubMethod(_logger, hubMethodInvocationMessage.
Target
, ex);
546
error = 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)
Protocol\JsonHubProtocol.cs (2)
643
writer.WriteString(TargetPropertyNameBytes, message.
Target
);
653
writer.WriteString(TargetPropertyNameBytes, message.
Target
);
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (2)
Protocol\MessagePackHubProtocolWorker.cs (2)
439
writer.Write(message.
Target
);
464
writer.Write(message.
Target
);
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (2)
Protocol\NewtonsoftJsonHubProtocol.cs (2)
633
writer.WriteValue(message.
Target
);
644
writer.WriteValue(message.
Target
);
Microsoft.AspNetCore.SignalR.Specification.Tests (7)
HubLifetimeManagerTestBase.cs (6)
49
Assert.Equal("Hello", message.
Target
);
54
Assert.Equal("Hello", message.
Target
);
82
Assert.Equal("Hello", message.
Target
);
112
Assert.Equal("Hello", message.
Target
);
143
Assert.Equal("Hello", message.
Target
);
168
Assert.Equal("Hello", message.
Target
);
ScaleoutHubLifetimeManagerTests.cs (1)
33
Assert.Equal("Hello", message.
Target
);