Class ClientServiceExtensions
Registers the headless Matrix client on a .NET host: options, session logging, storage, encryption, sync and outbox.
Inherited Members
Namespace: Uniform.Matrix.Client
Assembly: Uniform.Matrix.Client.dll
Syntax
public static class ClientServiceExtensions
Remarks
The application adds AddSettings(IHostApplicationBuilder) first, and its own ICredentialPrompt for the first login.
Examples
HostApplicationBuilder builder = Host.CreateApplicationBuilder(args);
builder.AddSettings();
builder.AddMatrixClient();
builder.Services.AddSingleton<ICredentialPrompt, MyPrompt>();
Methods
| Edit this page View SourceAddMatrixClient(IHostApplicationBuilder)
Add the client's options and services, and log each session to a file under the data directory.
Declaration
public static IHostApplicationBuilder AddMatrixClient(this IHostApplicationBuilder builder)
Parameters
| Type | Name | Description |
|---|---|---|
| IHostApplicationBuilder | builder |
Returns
| Type | Description |
|---|---|
| IHostApplicationBuilder |