Files
sor/Server/src/SOR.Shared/SOR.Shared.csproj
T
d21adbc8d0 Add networking foundation — 9-project C# solution (compiles clean)
Implements the modular networking layer for SOR Server:
- SOR.Networking.Abstractions: pure interfaces (ITransport, IClientConnection,
  IMessageSerializer, IMessageDispatcher, IMessageHandler, IEventBus, IClientPush)
- SOR.Networking.WebSocket: ITransport + IClientConnection over System.Net.WebSockets
- SOR.Networking.Nats: IEventBus over NATS.Net (INatsConnection)
- SOR.Networking.Redis: IClientPush over Redis Pub/Sub
- SOR.Shared: ServiceResult<T>, RedisKeys, NatsSubjects, ServerMessage, JSON serializer
- SOR.Shared.Proto: auth.proto with gRPC AuthService contract
- SOR.Gateway: accept loop, auth handshake, dispatcher, Redis push subscriber
- SOR.Auth: stub gRPC handler (placeholder responses)
- SOR.Host: multi-service runner via ENABLED_SERVICES env var; wires all DI

All concrete implementations are wired exclusively in SOR.Host — every transport,
broker, and push implementation can be swapped by changing only Program.cs.

dotnet build SOR.slnx → 0 errors, 0 warnings

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
2026-02-24 21:01:38 -05:00

21 lines
1000 B
XML

<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<AssemblyName>SOR.Shared</AssemblyName>
</PropertyGroup>
<ItemGroup>
<!-- DI abstractions: provides IServiceCollection used in ServiceRegistration.cs.
Class library projects (Sdk="Microsoft.NET.Sdk") must reference this explicitly;
Web SDK projects get it transitively from the ASP.NET Core framework reference. -->
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" />
<!-- SOR.Shared provides concrete implementations of Abstractions interfaces
(ServerMessage, RawClientMessage, SystemTextJsonSerializer) so it
must reference Abstractions. -->
<ProjectReference Include="..\SOR.Networking.Abstractions\SOR.Networking.Abstractions.csproj" />
</ItemGroup>
<!-- System.Text.Json is included in the .NET 8 BCL — no package reference needed. -->
<!-- StackExchange.Redis is NOT referenced here: RedisKeys only holds string constants. -->
</Project>