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)
1489
Log.ReceivedInvocation(_logger, invocation.InvocationId, invocation.
Target
, invocation.Arguments);
1552
if (!_handlers.TryGetValue(invocation.
Target
, out var invocationHandlerList))
1556
Log.MissingResultHandler(_logger, invocation.
Target
);
1563
Log.ErrorSendingInvocationResult(_logger, invocation.InvocationId!, invocation.
Target
, ex);
1568
Log.MissingHandler(_logger, invocation.
Target
);
1595
Log.ErrorInvokingClientSideMethod(_logger, invocation.
Target
, ex);
1617
Log.MissingResultHandler(_logger, invocation.
Target
);
1623
Log.ErrorSendingInvocationResult(_logger, invocation.InvocationId!, invocation.
Target
, ex);
1628
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)
330
if (!_methods.TryGetValue(hubMethodInvocationMessage.
Target
, out var descriptor))
332
Log.UnknownHubMethod(_logger, hubMethodInvocationMessage.
Target
);
338
hubMethodInvocationMessage.InvocationId, $"Unknown hub method '{hubMethodInvocationMessage.
Target
}'")).AsTask();
381
Log.HubMethodNotAuthorized(_logger, hubMethodInvocationMessage.
Target
);
383
$"Failed to invoke '{hubMethodInvocationMessage.
Target
}' because user is unauthorized");
399
Log.InvalidHubParameters(_logger, hubMethodInvocationMessage.
Target
, ex);
401
ErrorMessageHelper.BuildErrorMessage($"An unexpected error occurred invoking '{hubMethodInvocationMessage.
Target
}' on the server.", ex, _enableDetailedErrors));
456
var activity = StartActivity(SignalRServerActivitySource.InvocationIn, ActivityKind.Server, connection.OriginalActivity, scope.ServiceProvider, hubMethodInvocationMessage.
Target
, hubMethodInvocationMessage.Headers, logger, connection);
484
Log.FailedInvokingHubMethod(logger, hubMethodInvocationMessage.
Target
, ex);
486
ErrorMessageHelper.BuildErrorMessage($"An unexpected error occurred invoking '{hubMethodInvocationMessage.
Target
}' on the server.", ex, enableDetailedErrors));
541
Log.FailedInvokingHubMethod(_logger, hubMethodInvocationMessage.
Target
, ex);
543
ErrorMessageHelper.BuildErrorMessage($"An unexpected error occurred invoking '{hubMethodInvocationMessage.
Target
}' on the server.", ex.InnerException ?? ex, _enableDetailedErrors));
547
Log.FailedInvokingHubMethod(_logger, hubMethodInvocationMessage.
Target
, ex);
549
ErrorMessageHelper.BuildErrorMessage($"An unexpected error occurred invoking '{hubMethodInvocationMessage.
Target
}' on the server.", ex, _enableDetailedErrors));
600
var activity = StartActivity(SignalRServerActivitySource.InvocationIn, ActivityKind.Server, connection.OriginalActivity, scope.ServiceProvider, hubMethodInvocationMessage.
Target
, hubMethodInvocationMessage.Headers, _logger, connection);
622
Log.FailedInvokingHubMethod(_logger, hubMethodInvocationMessage.
Target
, ex);
623
error = ErrorMessageHelper.BuildErrorMessage($"An unexpected error occurred invoking '{hubMethodInvocationMessage.
Target
}' on the server.", ex, _enableDetailedErrors);
798
$"The client attempted to invoke the streaming '{hubMethodInvocationMessage.
Target
}' method with a non-streaming invocation."));
808
$"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
);