Table of Contents

Method StartAsync

Namespace
MailFathom.Application.Access.DefaultAdministrator
Assembly
MailFathom.Application.dll

StartAsync(string?, string, CancellationToken)

Records the default administrator where this deployment never did, and applies the password setting where it never was.

public Task<DefaultAdministratorStart> StartAsync(string? passwordSetting, string settingName, CancellationToken cancellationToken)

Parameters

passwordSetting string

The value the deployment was started with, or null where it carried none.

settingName string

The environment variable the value was read from, which a refusal names.

cancellationToken CancellationToken

Cancels the start.

Returns

Task<DefaultAdministratorStart>

What the start established, which the startup record reports.

Exceptions

DefaultAdministratorUnusableException

Thrown when the value fails the password policy, or when the username belongs to another user's credential.

PrincipalNotAuthorizedException

Thrown when reached under any principal but the process identity.