Table of Contents

Method CreateAsync

Namespace
MailFathom.Application.Access.Organizations
Assembly
MailFathom.Application.dll

CreateAsync(string?, OrganizationShortName, CancellationToken)

Records an organization under an identifier this deployment mints.

public Task<OrganizationWriteResult> CreateAsync(string? displayName, OrganizationShortName shortName, CancellationToken cancellationToken)

Parameters

displayName string

The name an operator reads it by.

shortName OrganizationShortName

The short name its members will sign in under.

cancellationToken CancellationToken

Cancels the write.

Returns

Task<OrganizationWriteResult>

What the act did, carrying the minted identifier when it was written.

Exceptions

ArgumentException

Thrown when displayName breaks FindDisplayNameRefusal(string?) or shortName is the unspecified struct default.

PrincipalNotAuthorizedException

Thrown when the caller does not hold AdminConfigurationWrite.