refactor(AuthClient): Enhance AuthClient with lazy initialization and connection error handling

- Replaced immediate connection start with lazy initialization via Lazy<Task<bool>>.
- Added IsConnected and ConnectionError properties to track connection status and errors.
- Introduced TryStartAsync method to safely attempt connection startup without throwing exceptions.
This commit is contained in:
Developer 02
2025-02-03 16:22:41 +01:00
parent 48970a1e13
commit 31ccd93b0d
2 changed files with 38 additions and 1 deletions

View File

@@ -3,4 +3,6 @@
public interface IAuthClient : IAuthClientHandler
{
Task StartAsync();
Task<bool> TryStartAsync();
}