Table of Contents

Method CreateAsync

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

CreateAsync(Guid, string, OrganizationShortName, DateTimeOffset, CancellationToken)

Records an organization.

Task<OrganizationWriteResult> CreateAsync(Guid organizationId, string displayName, OrganizationShortName shortName, DateTimeOffset createdAt, CancellationToken cancellationToken)

Parameters

organizationId Guid

The identifier the organization is to carry.

displayName string

The name an operator reads it by, already judged.

shortName OrganizationShortName

The short name its members will sign in under.

createdAt DateTimeOffset

When it was recorded.

cancellationToken CancellationToken

Cancels the write.

Returns

Task<OrganizationWriteResult>

Written or ShortNameTaken.