Skip to content

Class SendGridInvitationDeliveryServiceCollectionExtensions

Namespace: Cephalon.MultiTenancy.Governance.SendGridDelivery.Hosting
Assembly: Cephalon.MultiTenancy.Governance.SendGridDelivery.dll

Adds SendGrid Mail Send API invitation delivery services to a Cephalon host.

public static class SendGridInvitationDeliveryServiceCollectionExtensions

objectSendGridInvitationDeliveryServiceCollectionExtensions

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

The named HTTP client used by the SendGrid invitation delivery client.

public const string HttpClientName = "Cephalon.MultiTenancy.Governance.SendGridDelivery"

string

AddCephalonSendGridInvitationDelivery(IServiceCollection, IConfiguration, Action<SendGridInvitationDeliveryOptions>?)

Section titled “ AddCephalonSendGridInvitationDelivery(IServiceCollection, IConfiguration, Action<SendGridInvitationDeliveryOptions>?)”

Adds SendGrid invitation delivery using configuration as the primary source of Mail Send API settings.

public static IServiceCollection AddCephalonSendGridInvitationDelivery(this IServiceCollection services, IConfiguration configuration, Action<SendGridInvitationDeliveryOptions>? configure = null)

services IServiceCollection

The target service collection.

configuration IConfiguration

The application configuration root.

configure Action<SendGridInvitationDeliveryOptions>?

An optional callback that can extend or override the configuration-driven setup.

IServiceCollection

The same service collection for further registration.

AddCephalonSendGridInvitationDelivery(IServiceCollection, Action<SendGridInvitationDeliveryOptions>?)

Section titled “ AddCephalonSendGridInvitationDelivery(IServiceCollection, Action<SendGridInvitationDeliveryOptions>?)”

Adds SendGrid invitation delivery using code-first configuration.

public static IServiceCollection AddCephalonSendGridInvitationDelivery(this IServiceCollection services, Action<SendGridInvitationDeliveryOptions>? configure = null)

services IServiceCollection

The target service collection.

configure Action<SendGridInvitationDeliveryOptions>?

An optional callback that configures the SendGrid invitation delivery sender.

IServiceCollection

The same service collection for further registration.