Class MicrosoftGraphInvitationDeliveryOptions
Namespace: Cephalon.MultiTenancy.Governance.MicrosoftGraphDelivery.Configuration
Assembly: Cephalon.MultiTenancy.Governance.MicrosoftGraphDelivery.dll
Configures Microsoft Graph sendMail delivery for tenant invitations dispatched by the governance companion pack.
public sealed class MicrosoftGraphInvitationDeliveryOptionsInheritance
Section titled “Inheritance”object ← MicrosoftGraphInvitationDeliveryOptions
Inherited Members
Section titled “Inherited Members”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Remarks
Section titled “Remarks”The Microsoft Graph sender posts one JSON sendMail request to Microsoft Graph. It does not own OAuth credential
issuance, mailbox provisioning, Graph change notifications, provider polling, public onboarding, SMS, chat, CRM, or
identity-provider invitation flows.
Constructors
Section titled “Constructors”MicrosoftGraphInvitationDeliveryOptions()
Section titled “ MicrosoftGraphInvitationDeliveryOptions()”Initializes a new instance of the
public MicrosoftGraphInvitationDeliveryOptions()Properties
Section titled “Properties”AcceptedStatusCodes
Section titled “ AcceptedStatusCodes”Gets or sets response status codes that indicate Microsoft Graph accepted the request.
public IReadOnlyList<int> AcceptedStatusCodes { get; set; }Property Value
Section titled “Property Value”Remarks
Section titled “Remarks”The default accepts 202 Accepted, which means Graph accepted the send request but not that downstream mail
delivery has completed.
AccessToken
Section titled “ AccessToken”Gets or sets an optional static Microsoft Graph bearer token.
public string? AccessToken { get; set; }Property Value
Section titled “Property Value”Remarks
Section titled “Remarks”Production hosts should usually register
ApiVersion
Section titled “ ApiVersion”Gets or sets the Microsoft Graph API version segment.
public string ApiVersion { get; set; }Property Value
Section titled “Property Value”Remarks
Section titled “Remarks”The default is v1.0. Preview or beta endpoints should be used only by hosts that deliberately accept that
external API stability posture.
BaseUrl
Section titled “ BaseUrl”Gets or sets the Microsoft Graph API base URL.
public string BaseUrl { get; set; }Property Value
Section titled “Property Value”Remarks
Section titled “Remarks”The default targets the global Microsoft Graph cloud. Sovereign-cloud hosts can set this to the appropriate
Graph endpoint while keeping the same sendMail request contract.
Categories
Section titled “ Categories”Gets or sets Microsoft Graph message categories added to each request.
public IReadOnlyList<string> Categories { get; set; }Property Value
Section titled “Property Value”Enabled
Section titled “ Enabled”Gets or sets a value indicating whether the Microsoft Graph invitation sender should be registered.
public bool Enabled { get; set; }Property Value
Section titled “Property Value”Headers
Section titled “ Headers”Gets or sets custom Microsoft Graph internet message headers added to each request.
public IReadOnlyDictionary<string, string> Headers { get; set; }Property Value
Section titled “Property Value”IReadOnlyDictionary<string, string>
Remarks
Section titled “Remarks”The sender keeps only single-line custom x-* headers and filters message-core headers before sending.
HtmlBodyTemplate
Section titled “ HtmlBodyTemplate”Gets or sets the optional HTML Microsoft Graph message body template.
public string? HtmlBodyTemplate { get; set; }Property Value
Section titled “Property Value”Remarks
Section titled “Remarks”When configured, the sender uses a Graph message body with contentType = HTML. Otherwise it sends a plain
text body.
IncludeContextHeaders
Section titled “ IncludeContextHeaders”Gets or sets a value indicating whether safe Cephalon context headers should be added to the Graph message.
public bool IncludeContextHeaders { get; set; }Property Value
Section titled “Property Value”RecipientEmailMetadataKey
Section titled “ RecipientEmailMetadataKey”Gets or sets the metadata key used to resolve the recipient email address when the invitee id is not an email address.
public string RecipientEmailMetadataKey { get; set; }Property Value
Section titled “Property Value”Remarks
Section titled “Remarks”The sender checks dispatch metadata first and invitation metadata second. If neither contains a value and
InviteeKind is email, the invitee id is treated as the recipient address.
SaveToSentItems
Section titled “ SaveToSentItems”Gets or sets a value indicating whether Microsoft Graph should save the message to Sent Items.
public bool SaveToSentItems { get; set; }Property Value
Section titled “Property Value”Remarks
Section titled “Remarks”The default is false so service-style invitation dispatch does not fill the sender mailbox by default. Hosts can opt in when mailbox history is part of their compliance posture.
SenderId
Section titled “ SenderId”Gets or sets the sender identifier used by TenantInvitationDeliveryRequest.SenderId.
public string SenderId { get; set; }Property Value
Section titled “Property Value”SenderUserId
Section titled “ SenderUserId”Gets or sets the mailbox user id or user principal name used in /users/{id | userPrincipalName}/sendMail.
public string? SenderUserId { get; set; }Property Value
Section titled “Property Value”Remarks
Section titled “Remarks”When omitted, the sender posts to /me/sendMail. Application-permission hosts normally configure this value
and provide a token with Microsoft Graph Mail.Send permission.
SubjectTemplate
Section titled “ SubjectTemplate”Gets or sets the Microsoft Graph message subject template.
public string SubjectTemplate { get; set; }Property Value
Section titled “Property Value”SupportedChannels
Section titled “ SupportedChannels”Gets or sets delivery channels accepted by this sender.
public IReadOnlyList<string> SupportedChannels { get; set; }Property Value
Section titled “Property Value”Remarks
Section titled “Remarks”When empty, the sender accepts every requested channel.
TextBodyTemplate
Section titled “ TextBodyTemplate”Gets or sets the plain-text Microsoft Graph message body template.
public string TextBodyTemplate { get; set; }Property Value
Section titled “Property Value”TimeoutSeconds
Section titled “ TimeoutSeconds”Gets or sets the maximum time allowed for the Microsoft Graph API request.
public int TimeoutSeconds { get; set; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”FromConfiguration(IConfiguration, string)
Section titled “ FromConfiguration(IConfiguration, string)”Binds Microsoft Graph invitation delivery options from configuration.
public static MicrosoftGraphInvitationDeliveryOptions FromConfiguration(IConfiguration configuration, string sectionPath = "Engine")Parameters
Section titled “Parameters”configuration IConfiguration
The application configuration root.
sectionPath string
The configuration section path that contains the engine settings. The default is Engine.
Returns
Section titled “Returns”MicrosoftGraphInvitationDeliveryOptions
The bound Microsoft Graph invitation delivery options.