Table of Contents

Class TeamInviteMail

Namespace
Tharga.Team
Assembly
Tharga.Team.dll

Everything an ITeamEmailSender is given to write one invitation.

public record TeamInviteMail : IEquatable<TeamInviteMail>
Inheritance
TeamInviteMail
Implements
Inherited Members

Remarks

Carries the team's key as well as its name. A sender choosing the mail's language, branding or sender address per team has to look the team up, and a display name is neither unique nor stable. Reading the team from ambient state instead — the selected team — is right only while every invitation is raised from a page, and stops being right the moment one is raised by a worker, an endpoint or a bulk invite.

A record rather than more parameters, so a later addition is a new property rather than another overload.

Properties

The link that accepts the invitation.

public required string InviteLink { get; init; }

Property Value

string

RecipientEmail

Where the invitation is sent.

public required string RecipientEmail { get; init; }

Property Value

string

RecipientName

The name the invitation was raised for.

public required string RecipientName { get; init; }

Property Value

string

TeamKey

The key of the team the recipient is invited to.

public required string TeamKey { get; init; }

Property Value

string

TeamName

The display name of that team.

public required string TeamName { get; init; }

Property Value

string