Class ConnectionStatus
Current connection state, published by MatrixWorker; Changed fires on the worker's thread.
Inherited Members
Namespace: Uniform.Matrix.Client.Services
Assembly: Uniform.Matrix.Client.dll
Syntax
public sealed class ConnectionStatus
Properties
| Edit this page View SourceMessage
Detail of the state, e.g. the last error.
Declaration
public string? Message { get; }
Property Value
| Type | Description |
|---|---|
| string |
State
Current state.
Declaration
public ConnectionState State { get; }
Property Value
| Type | Description |
|---|---|
| ConnectionState |
Methods
| Edit this page View SourceSet(ConnectionState, string?)
Set the state and notifies listeners.
Declaration
public void Set(ConnectionState state, string? message = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ConnectionState | state | |
| string | message |
Events
| Edit this page View SourceChanged
Raised after every change.
Declaration
public event Action<ConnectionState, string?>? Changed
Event Type
| Type | Description |
|---|---|
| Action<ConnectionState, string> |