Class HomeserverDelayedEvents
Acts on delayed events through the client-server API of the user's homeserver, found from the server name by its /.well-known/matrix/client, never from a URL the client gave, so the service calls only real homeservers.
Implements
Inherited Members
Namespace: Uniform.LiveKit.Authorization
Assembly: Uniform.LiveKit.Authorization.dll
Syntax
public sealed class HomeserverDelayedEvents : IDelayedEvents
Constructors
| Edit this page View SourceHomeserverDelayedEvents(HttpClient)
Acts on delayed events through the client-server API of the user's homeserver, found from the server name by its /.well-known/matrix/client, never from a URL the client gave, so the service calls only real homeservers.
Declaration
public HomeserverDelayedEvents(HttpClient http)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpClient | http | The client of the requests. |
Methods
| Edit this page View SourceUpdateAsync(string, string, string, CancellationToken)
Restart or send delayed event delayId of a user of serverName: action is restart or send; return false when the homeserver has no such delayed event any more, e.g. as it was sent or cancelled.
Declaration
public Task<bool> UpdateAsync(string serverName, string delayId, string action, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| string | serverName | |
| string | delayId | |
| string | action | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<bool> |
Exceptions
| Type | Condition |
|---|---|
| HttpRequestException | When the homeserver cannot be reached, or fails otherwise. |