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
passwordSettingstringThe value the deployment was started with, or null where it carried none.
settingNamestringThe environment variable the value was read from, which a refusal names.
cancellationTokenCancellationTokenCancels 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.