Fix test failure for aspnet signalr #4396
Annotations
10 warnings
Build with dotnet:
test/Microsoft.Azure.SignalR.IntegrationTests/Infrastructure/MockServiceHubDispatcher.cs#L48
Parameter 'IServiceProvider serviceProvider' is captured into the state of the enclosing type and its value is also passed to the base constructor. The value might be captured by the base class as well.
|
Build with dotnet:
test/Microsoft.Azure.SignalR.IntegrationTests/MockService/ConnectionTrackingMockService.cs#L36
Member 'RemoveUnregisteredConnections' is explicitly initialized to its default value (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1805)
|
Build with dotnet:
test/Microsoft.Azure.SignalR.IntegrationTests/MockService/MockServiceSideClientConnection.cs#L33
Member '_invId' is explicitly initialized to its default value (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1805)
|
Build with dotnet:
test/Microsoft.Azure.SignalR.IntegrationTests/MockService/MockServiceSideConnection.cs#L35
Member 's_index' is explicitly initialized to its default value (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1805)
|
Build with dotnet:
test/Microsoft.Azure.SignalR.IntegrationTests/MockService/MockServiceSideConnection.cs#L33
Member 's_clientConnNum' is explicitly initialized to its default value (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1805)
|
Build with dotnet:
test/Microsoft.Azure.SignalR.IntegrationTests/MockService/MockServiceSideConnection.cs#L39
Member '_stopped' is explicitly initialized to its default value (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1805)
|
Build with dotnet:
test/Microsoft.Azure.SignalR.IntegrationTests/MockService/MockServiceSideConnection.cs#L42
Member '_processIncomingException' is explicitly initialized to its default value (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1805)
|
Build with dotnet:
test/Microsoft.Azure.SignalR.IntegrationTests/MockService/MockServiceSideConnection.cs#L77
Avoid unnecessary zero-length array allocations. Use Array.Empty<Claim>() instead. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1825)
|
Build with dotnet:
test/Microsoft.Azure.SignalR.IntegrationTests/MockService/MockServiceSideClientConnection.cs#L37
The behavior of 'int.ToString()' could vary based on the current user's locale settings. Replace this call in 'MockServiceSideClientConnection.SendMessage(string, object[])' with a call to 'int.ToString(IFormatProvider)'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1305)
|
Build with dotnet:
test/Microsoft.Azure.SignalR.IntegrationTests/Infrastructure/MessageOrderTests/HotReloadMessageOrderTestParams.cs#L27
Avoid unnecessary zero-length array allocations. Use Array.Empty<ServiceEndpoint>() instead. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1825)
|
Loading