AyCode.Core/AyCode.Services.Server.Tests/SignalRs
Loretta 5e06f3e122 Add logger support to grids, data sources, and helpers
- Added optional logger to TaskHelper.Forget for fire-and-forget error logging
- Updated MgGridBase and data sources to accept and use logger instances
- Refactored AcSignalRDataSource to log deserialization faults
- Modified constructors and usages of SignalRDataSourceList/Observable for logger injection
- Added CountryCode to CargoTruck and displayed in new GridCargoTruck
- Introduced GridCargoTruck.razor and base class with logger integration
- Updated GridCargoPartner to use new cargo truck grid as detail row
- Improved code style and ensured consistent error handling throughout
2026-05-30 06:47:06 +02:00
..
SignalRDatasources Add logger support to grids, data sources, and helpers 2026-05-30 06:47:06 +02:00
AcBinaryHubProtocolConcurrencyTests.cs [LOADED_DOCS: 3 files, no new loads] 2026-04-30 07:48:01 +02:00
AsyncSegmentPipeTransportWriter.cs [LOADED_DOCS: .github\copilot-instructions.md] 2026-04-18 14:31:27 +02:00
README.md Document AcBinary wire format, sync docs, update conventions 2026-03-29 09:11:57 +02:00
SignalRClientToHubTest.cs Refactor MaxDepth handling: explicit Throw/Truncate/Disable 2026-05-14 14:13:48 +02:00
SignalRTestHelper.cs Zero-copy SignalR: direct object response, no SignalData 2026-04-06 22:45:00 +02:00
SlabTransportWriter.cs Simulate Kestrel slab transport for SignalR BWO tests 2026-04-08 08:25:48 +02:00
TestInvocationBinder.cs Add SignalR protocol round-trip and multi-segment tests 2026-04-07 12:28:32 +02:00
TestMultiSegmentProtocol.cs [LOADED_DOCS: .github\copilot-instructions.md] 2026-04-22 22:44:37 +02:00
TestSignalRService2.cs [LOADED_DOCS: 2 files, no new loads] 2026-05-13 08:40:42 +02:00
TestSignalRTags.cs Add expression serialization & chain API for JSON deserialization 2025-12-29 15:28:46 +01:00
TestableSignalRClient2.cs [LOADED_DOCS: .github\copilot-instructions.md] 2026-04-18 14:31:27 +02:00
TestableSignalRHub2.cs [LOADED_DOCS: .github\copilot-instructions.md] 2026-04-19 12:58:31 +02:00

README.md

SignalRs

Full SignalR client→hub→service test infrastructure with testable components that bypass real network connections.

Key Files

  • SignalRClientToHubTest.cs — Abstract round-trip test base. Tests: Post_SingleInt, Post_TwoInts, Post_Bool, Post_String, Post_Guid, Post_Enum, and more.
  • TestableSignalRClient2.csAcSignalRClientBase implementation: direct hub calls, zero network, zero delays.
  • TestableSignalRHub2.csAcWebSignalRHubBase implementation: simulates connection state, user identity, claims. Captures responses.
  • TestSignalRService2.cs — 50+ methods: primitives (23), complex objects (3), collections (9), arrays (6), mixed (4), async (4), Task.FromResult (4), large datasets, property mismatch, DataSource CRUD (7), production bug reproductions.
  • TestSignalRTags.cs — 50+ const int message tags (100-500 range).
  • SignalRTestHelper.cs — CreatePrimitiveParamsMessage, CreateComplexObjectMessage, GetResponseData, AssertSuccessResponse.

Subfolders

Folder Purpose
SignalRDatasources/ DataSource CRUD and collection tests