Class ClientConnection
The client engine of one signed-in account, running in its own .NET host until disposed.
Inheritance
ClientConnection
Assembly: Uniform.Chat.Avalonia.dll
public sealed class ClientConnection : IAsyncDisposable
Properties
|
Edit this page
View Source
Declaration
public CallService Calls { get; }
Property Value
|
Edit this page
View Source
Declaration
public CryptoService Crypto { get; }
Property Value
|
Edit this page
View Source
This session's log file, in the folder of the earlier sessions' logs; null when there is none.
Declaration
public string? LogPath { get; }
Property Value
|
Edit this page
View Source
Log of the user interface, written to the session log.
Declaration
public ILogger Logger { get; }
Property Value
|
Edit this page
View Source
Downloaded media and thumbnails.
Declaration
public MediaCache Media { get; }
Property Value
|
Edit this page
View Source
Messages waiting to be sent.
Declaration
public OutboxSender Outbox { get; }
Property Value
|
Edit this page
View Source
Room state and the stream of sync changes.
Declaration
public SyncProcessor Processor { get; }
Property Value
|
Edit this page
View Source
Login and the logged-in client.
Declaration
public ClientSession Session { get; }
Property Value
|
Edit this page
View Source
Connection state for the status line.
Declaration
public ConnectionStatus Status { get; }
Property Value
|
Edit this page
View Source
Declaration
public ClientStore Store { get; }
Property Value
|
Edit this page
View Source
Declaration
public string UserId { get; }
Property Value
Methods
|
Edit this page
View Source
Return a user's display name from the rooms shared with them, or the user ID when none is known.
Declaration
public string DisplayNameOf(string userId)
Parameters
| Type |
Name |
Description |
| string |
userId |
|
Returns
|
Edit this page
View Source
Declaration
public ValueTask DisposeAsync()
Returns
|
Edit this page
View Source
Log out on the server, which deletes this device, then stop the engine.
Declaration
public Task LogOutAsync()
Returns
|
Edit this page
View Source
Declaration
public static Task<ClientConnection> StartAsync(GuiPlatform platform, SignIn signIn, CancellationToken cancellationToken = default)
Parameters
Returns
|
Edit this page
View Source
Wait until the engine has logged in; throw with the engine's reason when it fails, e.g. a wrong password.
Declaration
public Task<MatrixClient> WaitForLoginAsync(CancellationToken cancellationToken = default)
Parameters
Returns
Implements