Class AccountDeactivation
Deactivates an account at its owner's request: leaves its rooms, clears its profile and ends its sessions; the user ID is never given out again.
Inherited Members
Namespace: Uniform.Matrix.Server.Accounts
Assembly: Uniform.Matrix.Server.dll
Syntax
public sealed class AccountDeactivation
Constructors
| Edit this page View SourceAccountDeactivation(IDbContextFactory<ServerDbContext>, AccountService, RoomService, ILogger<AccountDeactivation>)
Create the service.
Declaration
public AccountDeactivation(IDbContextFactory<ServerDbContext> contexts, AccountService accounts, RoomService rooms, ILogger<AccountDeactivation> logger)
Parameters
| Type | Name | Description |
|---|---|---|
| IDbContextFactory<ServerDbContext> | contexts | |
| AccountService | accounts | |
| RoomService | rooms | |
| ILogger<AccountDeactivation> | logger |
Methods
| Edit this page View SourceDeactivateAsync(string, CancellationToken)
Deactivate userId: leave joined rooms, reject invites, clear the display name and avatar, delete pushers, then log out every device.
Declaration
public Task DeactivateAsync(string userId, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| string | userId | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task |