1 write to Error
Microsoft.AspNetCore.SignalR.Common (1)
Protocol\CompletionMessage.cs (1)
44Error = error;
76 references to Error
Microsoft.AspNetCore.Components.Server (2)
src\SignalR\common\Protocols.MessagePack\src\Protocol\MessagePackHubProtocolWorker.cs (2)
528message.Error != null ? ErrorResult : 540writer.Write(message.Error);
Microsoft.AspNetCore.Components.Server.Tests (2)
src\SignalR\common\SignalR.Common\test\Internal\Protocol\TestHubMessageEqualityComparer.cs (2)
55&& string.Equals(x.Error, y.Error, StringComparison.Ordinal)
Microsoft.AspNetCore.SignalR.Client.Core (4)
Internal\InvocationRequest.cs (4)
107if (!string.IsNullOrEmpty(completionMessage.Error)) 109Fail(new HubException(completionMessage.Error)); 180if (!string.IsNullOrEmpty(completionMessage.Error)) 182Fail(new HubException(completionMessage.Error));
Microsoft.AspNetCore.SignalR.Common (3)
Protocol\CompletionMessage.cs (3)
52var errorStr = Error == null ? "<<null>>" : $"\"{Error}\""; 54return $"Completion {{ {nameof(InvocationId)}: \"{InvocationId}\", {nameof(Error)}: {errorStr}{resultField} }}";
Microsoft.AspNetCore.SignalR.Common.Tests (5)
Internal\Protocol\JsonHubProtocolTestsBase.cs (2)
478Assert.Null(completion.Error); 494Assert.StartsWith("Error trying to deserialize result to Int32.", completion.Error);
Internal\Protocol\MessagePackHubProtocolTests.cs (1)
269Assert.StartsWith("Error trying to deserialize result to Int32.", completion.Error);
Internal\Protocol\TestHubMessageEqualityComparer.cs (2)
55&& string.Equals(x.Error, y.Error, StringComparison.Ordinal)
Microsoft.AspNetCore.SignalR.Core (4)
Internal\DefaultHubDispatcherLog.cs (1)
90=> ClosingStreamWithBindingError(logger, message.InvocationId, message.Error);
src\SignalR\common\Shared\ClientResultsManager.cs (1)
30tcs.SetException(new HubException(completionMessage.Error));
StreamTracker.cs (2)
81converter.TryComplete(message.HasResult || message.Error == null ? null : new HubException(message.Error));
Microsoft.AspNetCore.SignalR.Microbenchmarks (2)
DefaultHubDispatcherBenchmark.cs (2)
98if (!string.IsNullOrEmpty(completionMessage.Error)) 100throw new Exception("Error invoking hub method: " + completionMessage.Error);
Microsoft.AspNetCore.SignalR.Protocols.Json (2)
Protocol\JsonHubProtocol.cs (2)
595if (!string.IsNullOrEmpty(message.Error)) 597writer.WriteString(ErrorPropertyNameBytes, message.Error);
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (2)
Protocol\MessagePackHubProtocolWorker.cs (2)
528message.Error != null ? ErrorResult : 540writer.Write(message.Error);
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (2)
Protocol\NewtonsoftJsonHubProtocol.cs (2)
594if (!string.IsNullOrEmpty(message.Error)) 597writer.WriteValue(message.Error);
Microsoft.AspNetCore.SignalR.StackExchangeRedis (1)
src\SignalR\common\Shared\ClientResultsManager.cs (1)
30tcs.SetException(new HubException(completionMessage.Error));
Microsoft.AspNetCore.SignalR.Tests (47)
HubConnectionHandlerTests.ClientResult.cs (1)
66Assert.Equal("An unexpected error occurred invoking 'GetClientResult' on the server. HubException: Client error", completion.Error);
HubConnectionHandlerTests.cs (30)
932Assert.Equal($"An unexpected error occurred invoking '{methodName}' on the server. InvalidOperationException: BOOM!", message.Error); 936Assert.Equal($"An unexpected error occurred invoking '{methodName}' on the server.", message.Error); 999Assert.Equal($"An unexpected error occurred invoking '{methodName}' on the server. HubException: This is a hub exception", message.Error); 1242Assert.Equal("Failed to invoke 'OnDisconnectedAsync' due to an error on the server. HubException: Method does not exist.", result.Error); 1286Assert.Equal("Failed to invoke 'StaticMethod' due to an error on the server. HubException: Method does not exist.", result.Error); 1310Assert.Equal("Failed to invoke 'ToString' due to an error on the server. HubException: Method does not exist.", result.Error); 1313Assert.Equal("Failed to invoke 'GetHashCode' due to an error on the server. HubException: Method does not exist.", result.Error); 1316Assert.Equal("Failed to invoke 'Equals' due to an error on the server. HubException: Method does not exist.", result.Error); 1319Assert.Equal("Failed to invoke 'ReferenceEquals' due to an error on the server. HubException: Method does not exist.", result.Error); 1344Assert.Equal("Failed to invoke 'Dispose' due to an error on the server. HubException: Method does not exist.", result.Error); 2061Assert.Null(hubMessage.Error); 2109Assert.Equal($"An error occurred on the server while streaming results. {detailedError}", completion.Error); 2113Assert.Equal("An error occurred on the server while streaming results.", completion.Error); 2215Assert.NotNull(message.Error); 2252Assert.Null(message.Error); 2360Assert.Null(message.Error); 3301Assert.Equal("Invocation ID '123' is already in use.", completion.Error); 3526Assert.Null(completion.Error); 3781Assert.Null(completion.Error); 3789Assert.Null(response.Error); 3882Assert.Null(response.Error); 4023Assert.Equal("An unexpected error occurred invoking 'StreamingConcat' on the server. HubException: Client sent 2 stream(s), Hub method expects 1.", response.Error); 4042Assert.Equal("An unexpected error occurred invoking 'StreamingConcat' on the server. HubException: Client sent 0 stream(s), Hub method expects 1.", response.Error); 4394Assert.Equal("Failed to invoke 'InvalidArgument' due to an error on the server.", completion.Error); 4662Assert.Equal("An unexpected error occurred invoking 'SingleService' on the server. InvalidOperationException: No service for type 'Microsoft.AspNetCore.SignalR.Tests.Service1' has been registered.", res.Error); 4742Assert.Equal("An unexpected error occurred invoking 'Stream' on the server. HubException: Client sent 0 stream(s), Hub method expects 1.", res.Error); 4764Assert.Equal("Failed to invoke 'ServiceWithoutAttribute' due to an error on the server. InvalidDataException: Invocation provides 0 argument(s) but target expects 1.", res.Error); 4854Assert.Equal("Failed to invoke 'ServiceWithAndWithoutAttribute' due to an error on the server. InvalidDataException: Invocation provides 0 argument(s) but target expects 1.", res.Error); 4896Assert.Equal("Failed to invoke 'ServiceWithoutAttribute' due to an error on the server. InvalidDataException: Invocation provides 0 argument(s) but target expects 1.", res.Error); 4916Assert.Equal("Failed to invoke 'IEnumerableOfServiceWithoutAttribute' due to an error on the server. InvalidDataException: Invocation provides 0 argument(s) but target expects 1.", res.Error);
HubConnectionHandlerTestUtils\Utils.cs (2)
34Assert.Equal(expectedCompletion.Error, actualCompletion.Error);
HubFilterTests.cs (14)
129Assert.Null(message.Error); 162Assert.Null(completion.Error); 208Assert.Null(message.Error); 258Assert.Null(message.Error); 309Assert.Null(message.Error); 363Assert.Null(message.Error); 423Assert.Null(message.Error); 485Assert.Null(message.Error); 557Assert.Null(message.Error); 604Assert.Null(message.Error); 639Assert.Equal("Failed to invoke 'Method' due to an error on the server. HubException: Method does not exist.", message.Error); 670Assert.Equal("Failed to invoke 'Method' due to an error on the server. HubException: Method does not exist.", message.Error); 702Assert.Null(message.Error); 891Assert.Equal("An unexpected error occurred invoking 'Echo' on the server. HubException: Unknown hub method 'BaseMethod'", message.Error);