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)
1632
Log.ReceivedInvocation(_logger, invocation.InvocationId, invocation.
Target
, invocation.Arguments);
1695
if (!_handlers.TryGetValue(invocation.
Target
, out var invocationHandlerList))
1699
Log.MissingResultHandler(_logger, invocation.
Target
);
1706
Log.ErrorSendingInvocationResult(_logger, invocation.InvocationId!, invocation.
Target
, ex);
1711
Log.MissingHandler(_logger, invocation.
Target
);
1738
Log.ErrorInvokingClientSideMethod(_logger, invocation.
Target
, ex);
1760
Log.MissingResultHandler(_logger, invocation.
Target
);
1766
Log.ErrorSendingInvocationResult(_logger, invocation.InvocationId!, invocation.
Target
, ex);
1771
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)
337
if (!_methods.TryGetValue(hubMethodInvocationMessage.
Target
, out var descriptor))
339
Log.UnknownHubMethod(_logger, hubMethodInvocationMessage.
Target
);
345
hubMethodInvocationMessage.InvocationId, $"Unknown hub method '{hubMethodInvocationMessage.
Target
}'")).AsTask();
389
Log.HubMethodNotAuthorized(_logger, hubMethodInvocationMessage.
Target
);
391
$"Failed to invoke '{hubMethodInvocationMessage.
Target
}' because user is unauthorized");
407
Log.InvalidHubParameters(_logger, hubMethodInvocationMessage.
Target
, ex);
409
ErrorMessageHelper.BuildErrorMessage($"An unexpected error occurred invoking '{hubMethodInvocationMessage.
Target
}' on the server.", ex, _enableDetailedErrors));
466
var activity = StartActivity(SignalRServerActivitySource.InvocationIn, ActivityKind.Server, connection.OriginalActivityLinks, scope.ServiceProvider, hubMethodInvocationMessage.
Target
, hubMethodInvocationMessage.Headers, logger, connection, descriptor);
494
Log.FailedInvokingHubMethod(logger, hubMethodInvocationMessage.
Target
, ex);
496
ErrorMessageHelper.BuildErrorMessage($"An unexpected error occurred invoking '{hubMethodInvocationMessage.
Target
}' on the server.", ex, enableDetailedErrors));
551
Log.FailedInvokingHubMethod(_logger, hubMethodInvocationMessage.
Target
, ex);
553
ErrorMessageHelper.BuildErrorMessage($"An unexpected error occurred invoking '{hubMethodInvocationMessage.
Target
}' on the server.", ex.InnerException ?? ex, _enableDetailedErrors));
557
Log.FailedInvokingHubMethod(_logger, hubMethodInvocationMessage.
Target
, ex);
559
ErrorMessageHelper.BuildErrorMessage($"An unexpected error occurred invoking '{hubMethodInvocationMessage.
Target
}' on the server.", ex, _enableDetailedErrors));
611
var activity = StartActivity(SignalRServerActivitySource.InvocationIn, ActivityKind.Server, connection.OriginalActivityLinks, scope.ServiceProvider, hubMethodInvocationMessage.
Target
, hubMethodInvocationMessage.Headers, _logger, connection, descriptor);
634
Log.FailedInvokingHubMethod(_logger, hubMethodInvocationMessage.
Target
, ex);
635
error = ErrorMessageHelper.BuildErrorMessage($"An unexpected error occurred invoking '{hubMethodInvocationMessage.
Target
}' on the server.", ex, _enableDetailedErrors);
827
$"The client attempted to invoke the streaming '{hubMethodInvocationMessage.
Target
}' method with a non-streaming invocation."));
837
$"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
);