addMailPit

Method
📦 CommunityToolkit.Aspire.Hosting.MailPit v13.6.1
interface IDistributedApplicationBuilder {
// ... omitted for brevity
addMailPit(
name: string,
httpPort?: number,
smtpPort?: number): MailPitContainerResource;
}

Signature

methodaddMailPitbuilder
Adds a MailPit container resource
addMailPit(
name: string,
httpPort?: number,
smtpPort?: number): MailPitContainerResource
namestringThe name of the MailPit container resource.
httpPortnumberoptionalOptional. The HTTP port on which MailPit will listen.
smtpPortnumberoptionalOptional. The SMTP port on which MailPit will listen.
MailPitContainerResource

Applies to

This method applies to the following types: