Class ServerServiceExtensions
Registers and maps the homeserver on an ASP.NET Core application.
Inheritance
ServerServiceExtensions
Namespace: Uniform.Matrix.Server
Assembly: Uniform.Matrix.Server.dll
public static class ServerServiceExtensions
WebApplicationBuilder builder = WebApplication.CreateBuilder(args);
builder.AddSettings();
builder.AddMatrixServer();
WebApplication app = builder.Build();
app.MapMatrixServer();
await app.RunAsync();
Methods
|
Edit this page
View Source
Add the server's options and services.
Declaration
public static IHostApplicationBuilder AddMatrixServer(this IHostApplicationBuilder builder)
Parameters
Returns
|
Edit this page
View Source
Bind the server's options and list them for the settings window, in this order; e.g. for a manager that edits a running server's settings file.
Declaration
public static IServiceCollection AddServerOptionSections(this IServiceCollection services, IConfiguration configuration)
Parameters
Returns
|
Edit this page
View Source
Add the Matrix middleware and map every endpoint.
Declaration
public static WebApplication MapMatrixServer(this WebApplication app)
Parameters
Returns