LANCommander/LANCommander.SDK/Exceptions
Pat Hartl a648852292 Implement SDK using dependency injection
- API requests are now made through the ApiRequestBuilder with DI supplied via the ApiRequestFactory singleton
- Reliance on RestSharp and WebClient has been removed in favor of HttpClient
- Auth token is now being tracked by the ITokenProvider
- Network information (MAC address, broadcast addresses, IP address) is now supplied with the INetworkInformationProvider singleton
- Connection state is now being maintained by the ConnectionService, with a reliance on RPC (SignalR websocket) reporting actual connection state without relying on pings
- All download streams are now provided as a TrackableStream
- Singleton Client class has been removed. All usage of the SDK should happen via Dependency Injection

This is just a base, non-functional refactor of the SDK to use DI. The following changes to the rest of the codebase need to be made:
- Usage of the SDK client in the launcher needs to be replaced in favor of injecting SDK services
- PowerShell cmdlets need to be able to have services injected. Most likely a separate scope will have to be opened up per PS runtime?
- Usage of the SDK client in the server needs to be replaced in favor of injecting SDK services. This should be minimal and should actually provide benefit when it comes to executing client-like features (scripts mostly) without needing a fully configured client that maintains connection state.
- Configuration of the client needs to be implemented using ILANCommanderConfiguration
2025-09-22 00:29:51 -05:00
..
ApiVersionMismatchException.cs Validate API version when doing requests 2024-05-13 18:41:00 -05:00
AuthFailedException.cs Proper error messaging for login/register, utilizing ErrorResponse 2025-06-22 01:36:17 +02:00
DepotNoResultsException.cs Fix missing exception 2025-03-14 11:28:07 -05:00
InstallCanceledException.cs Added download canceling back into downloads 2024-01-25 00:46:10 -06:00
InstallException.cs Added download canceling back into downloads 2024-01-25 00:46:10 -06:00
InvalidAddressException.cs Implement SDK using dependency injection 2025-09-22 00:29:51 -05:00
RegisterFailedException.cs Proper error messaging for login/register, utilizing ErrorResponse 2025-06-22 01:36:17 +02:00